Cancelling a PTHREAD_CANCEL_DISABLE thread

Kaz Kylheku kaz@ashi.footprints.net
Tue Sep 26 09:44:00 GMT 2000


On Tue, 26 Sep 2000 Neale.Ferguson@SoftwareAG-USA.com wrote:

> Should cancel.c be changed to detect that the thread is not cancellable or
> should that test be performed in the extricate routine?

cancel.c should detect that the thread is not cancellable and simply drop
the pthread_cancel request on the floor.  Doing the test in the extricate
routine would cause replication of code; the purpose of the extricate interface
is limited to dequeuing the thread from whatever thing it's entangled in, and to
indicate the success of this task.

I will look into what it will take to eliminate the generation of spurious
wakeups in this area.



More information about the Libc-alpha mailing list