L 6.7:  Canceling pending IPCs

(Revision 0    6  November 2000)

 

overview    continuation of system call #6 - get here with a valid active thread
	    and attributes set up: this code cancels any pending sends to the thread 

 

on entry	s2	target tcb base
		
88,90 if no pending sends to thread goto l96 L6.8
91 if there is a pending send remove it from this thread's sendQ
92,93 indicate send failed in sender's tcb and make that thread runnable with an error indicating that the send was cancelled
89,94 insert the thread whose send was cancelled in the kernel's ready list and give it a timeslice
95 loop back to l88 to check for any more pending senders to this thread