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: libc-alpha at sources dot redhat dot com
- Subject: Re: Cancelling a PTHREAD_CANCEL_DISABLE thread
- From: Neale dot Ferguson at softwareAG-usa dot com
- Date: Tue, 26 Sep 2000 12:45:46 +0200
>> Should cancel.c be changed to detect that the thread is not cancellable
>> 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 int
> is limited to dequeuing the thread from whatever thing it's entangled in,
> indicate the success of this task.
>
> I will look into what it will take to eliminate the generation of spuriou
> wakeups in this area.
>
Great! Many thanks. (It seemed more appropriate to do it pthread_cancel()
but I'm a novice in these matters.)
Neale