This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug nptl/13613] Cancellation is broken in single-threaded processes


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.


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