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


>> 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


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