This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
define PTHREAD_CANCELED in pthread.h
- From: "Joel Sherrill <joel at OARcorp dot com>" <joel dot sherrill at OARcorp dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 07 Oct 2002 15:29:11 -0500
- Subject: define PTHREAD_CANCELED in pthread.h
- Organization: OAR Corporation
- Reply-to: joel dot sherrill at OARcorp dot com
Hi,
pthread.h didn't define PTHREAD_CANCELED which is required.
I am surprised no one ever noticed. :>
2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/include/pthread.h: Define PTHREAD_CANCELED.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
2002-10-07 Joel Sherrill <joel@OARcorp.com>
* libc/include/pthread.h: Define PTHREAD_CANCELED.
Index: newlib-cvs-20020822/libc/include/pthread.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/pthread.h,v
retrieving revision 1.2
diff -u -r1.2 pthread.h
--- newlib-cvs-20020822/libc/include/pthread.h 20 Jun 2002 19:51:19 -0000 1.2
+++ newlib-cvs-20020822/libc/include/pthread.h 22 Aug 2002 17:15:15 -0000
@@ -258,6 +258,8 @@
#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 */