This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Cancelling a PTHREAD_CANCEL_DISABLE thread
- To: Neale dot Ferguson at SoftwareAG-USA dot com
- Subject: Re: Cancelling a PTHREAD_CANCEL_DISABLE thread
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Tue, 26 Sep 2000 09:44:12 -0700 (PDT)
- cc: libc-alpha at sources dot redhat dot com
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.