X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fglthread%2Fthread.h;h=a5f62a1f1af1e9f0d940fe96350d5fbb63247a29;hb=84c23b94c66ee83ff3843a50ef948e9556746ef1;hp=a04e4a40044fb7559877dc03377320679bda731c;hpb=aa9a86a07676825d3b072d7221c4787eafa1d9d9;p=gnulib.git diff --git a/lib/glthread/thread.h b/lib/glthread/thread.h index a04e4a400..a5f62a1f1 100644 --- a/lib/glthread/thread.h +++ b/lib/glthread/thread.h @@ -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)