From 102f6a01e249ce4495f1119ae6d963a2a4a53ce5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 21 Feb 2015 22:05:15 -0500 Subject: 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. --- include/pthread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.2.1