[PATCH][BZ #13613] Allow a single-threaded process to cancel itself

Siddhesh Poyarekar siddhesh@redhat.com
Thu May 10 17:14:00 GMT 2012


On Thu, 10 May 2012 12:41:04 -0400, Carlos wrote:
> Thanks for pointing out useless busy work. I thought there might be
> value in eventually differentiating from "Is cancellation possible?"
> vs. "Have other threads run?" given that often I've wanted to disable
> cancellation entirely for testing, but not disable other runtime
> behaviour based on SINGLE_THREAD_P. I shouldn't offload that work onto
> Siddhesh.

I don't mind the grunt work. I can work on it after 2.16 has branched
off, if the idea is acceptable.

> * pthread_cancel, stating that exactly why we are touching
> multiple_threads.

Isn't the comment I already have in pthread_cancel enough? I will work
on the rest of the points and post an updated patch.


Thanks,
Siddhesh



More information about the Libc-alpha mailing list