thread: Support pthreads-win32.
authorBruno Haible <bruno@clisp.org>
Thu, 9 Jun 2011 10:40:44 +0000 (12:40 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Jun 2011 10:56:17 +0000 (12:56 +0200)
commitf462d86108d41b1ca0f48b51caad6c696d67d8fd
tree94d3b0ebca1dd100a02f6616c0fa91fb64febdab
parent5f0441a0bef4d7a8af4e3ba8b24a948e5cccd71c
thread: Support pthreads-win32.

* lib/glthread/thread.h (gl_thread_self): Define differently on
pthreads-win32.
(gl_null_thread): New declaration.
(gl_thread_self_pointer): New macro.
* lib/glthread/thread.c (gl_null_thread): New constant.
* tests/test-lock.c: Use gl_thread_self_pointer instead of
gl_thread_self.
* tests/test-tls.c: Likewise.
Suggested by Paul Eggert. Reported by Eric Blake.
ChangeLog
lib/glthread/thread.c
lib/glthread/thread.h
tests/test-lock.c
tests/test-tls.c