This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #13613] Allow a single-threaded process to cancelitself
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