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/21291] pthread cancellation fails when contending lock


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.

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