Add a comment.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Oct 2008 00:32:53 +0000 (02:32 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Oct 2008 00:34:33 +0000 (02:34 +0200)
lib/glthread/thread.h

index a04e4a4..a5f62a1 100644 (file)
@@ -137,6 +137,9 @@ extern int glthread_in_use (void);
 
 /* -------------------------- gl_thread_t datatype -------------------------- */
 
+/* This choice of gl_thread_t assumes that
+     pthread_equal (a, b)  is equivalent to  ((a) == (b)).
+   This is the case on all platforms in use in 2008.  */
 typedef pthread_t gl_thread_t;
 # define glthread_create(THREADP, FUNC, ARG) \
     (pthread_in_use () ? pthread_create (THREADP, NULL, FUNC, ARG) : ENOSYS)