aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2002-10-08 13:03:07 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2002-10-08 13:03:07 +0000
commit89e3fcba7083f00f82f462c4d6c3c332478e3383 (patch)
tree5e97eb0645061541cc6e470f3bc87d87dfc7978f /newlib/libc
parent54ec52e4a45dd0fedfc6fd0b6ddd233f996e9e37 (diff)
downloadnewlib-89e3fcba7083f00f82f462c4d6c3c332478e3383.zip
newlib-89e3fcba7083f00f82f462c4d6c3c332478e3383.tar.gz
newlib-89e3fcba7083f00f82f462c4d6c3c332478e3383.tar.bz2
2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/include/pthread.h: Define PTHREAD_CANCELED.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index af5d32c..05ff38b 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -258,6 +258,8 @@ int _EXFUN(pthread_key_delete, (pthread_key_t key));
#define PTHREAD_CANCEL_DEFERRED 0
#define PTHREAD_CANCEL_ASYNCHRONOUS 1
+#define PTHREAD_CANCELED ((void *) -1)
+
int _EXFUN(pthread_cancel, (pthread_t thread));
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */