This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cancelling a PTHREAD_CANCEL_DISABLE thread


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]