This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21291] pthread cancellation fails when contending lock
- From: "dimitri.staessens at ugent dot be" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 12 Jun 2017 21:13:29 +0000
- Subject: [Bug nptl/21291] pthread cancellation fails when contending lock
- Auto-submitted: auto-generated
- References: <bug-21291-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21291
--- Comment #16 from Dimitri Staessens <dimitri.staessens at ugent dot be> ---
I've also found this section of POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html
You will find the following statement:
"For functions in the "shall occur" list, a cancellation check must be
performed on every call regardless of whether, absent the cancellation, the
call would have blocked. For functions in the "may occur" list, a cancellation
check may be performed on some calls but not others; i.e., whether or not a
cancellation point occurs when one of these functions is being executed can
depend on current conditions."
in
http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html
You will find that pthread_cond_timedwait() is in the "shall occur" list, so
this also states that this function always has to perform a cancellation check.
--
You are receiving this mail because:
You are on the CC list for the bug.