summaryrefslogtreecommitdiff
path: root/include/pthread.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-02-21 22:05:15 -0500
committerRich Felker <dalias@aerifal.cx>2015-02-21 22:05:15 -0500
commit102f6a01e249ce4495f1119ae6d963a2a4a53ce5 (patch)
tree48176fc7da5e0193a47ae32b22e057f8bef43093 /include/pthread.h
parentf409338a9e808a09001669377c608fd2803d808d (diff)
downloadmusl-102f6a01e249ce4495f1119ae6d963a2a4a53ce5.tar.gz
musl-102f6a01e249ce4495f1119ae6d963a2a4a53ce5.tar.bz2
musl-102f6a01e249ce4495f1119ae6d963a2a4a53ce5.tar.xz
musl-102f6a01e249ce4495f1119ae6d963a2a4a53ce5.zip
add new masked cancellation mode
this is a new extension which is presently intended only for experimental and internal libc use. interface and behavior details may change subject to feedback and experience from using it internally. the basic concept for the new PTHREAD_CANCEL_MASKED state is that the first cancellation point to observe the cancellation request fails with an errno value of ECANCELED rather than acting on cancellation, allowing the caller to process the status and choose whether/how to act upon it.
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 2697e8bc..99a74a53 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -63,6 +63,7 @@ extern "C" {
#define PTHREAD_CANCEL_ENABLE 0
#define PTHREAD_CANCEL_DISABLE 1
+#define PTHREAD_CANCEL_MASKED 2
#define PTHREAD_CANCEL_DEFERRED 0
#define PTHREAD_CANCEL_ASYNCHRONOUS 1