This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/13613] Cancellation is broken in single-threaded processes
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 09 May 2012 10:44:47 +0000
- Subject: [Bug nptl/13613] Cancellation is broken in single-threaded processes
- Auto-submitted: auto-generated
- References: <bug-13613-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13613
--- Comment #4 from Jakub Jelinek <jakub at redhat dot com> 2012-05-09 10:44:47 UTC ---
If anything, pthread_cancel should for self-cancellation (with a comment)
THREAD_SETMEM (THREAD_SELF, header.multiple_threads, 1);
#ifndef TLS_MULTIPLE_THREADS_IN_TCB
__pthread_multiple_threads = *__libc_multiple_threads_ptr = 1;
#endif
Then this will work just fine, without any overhead in the common path, except
a few insns in the already slow pthread_cancel.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.