OSDN Git Service

2002-10-07 Joel Sherrill <joel@OARcorp.com>
authorjoel <joel>
Tue, 8 Oct 2002 13:03:07 +0000 (13:03 +0000)
committerjoel <joel>
Tue, 8 Oct 2002 13:03:07 +0000 (13:03 +0000)
* libc/include/pthread.h: Define PTHREAD_CANCELED.

newlib/libc/include/pthread.h

index af5d32c..05ff38b 100644 (file)
@@ -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 */