]> Savannah Git Hosting - gnulib.git/commit
thread, lock, cond, tls: Recognize C11 multithreaded applications.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Jun 2019 01:54:56 +0000 (03:54 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Jun 2019 01:59:07 +0000 (03:59 +0200)
commit79c2545308000d2120009a76bea4f36f06f16b1b
tree8acbf5d44d2160038130e4f65f40fc0d00e774c4
parent97ae5364457c30ea826fa5e6c0c0a41c73a30c38
thread, lock, cond, tls: Recognize C11 multithreaded applications.

* m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
* lib/glthread/thread.h (c11_threads_in_use): New macro.
(pthread_in_use, pth_in_use, thread_in_use): Use it.
* lib/glthread/lock.h (c11_threads_in_use): New macro.
(pthread_in_use, pth_in_use, thread_in_use): Use it.
* lib/glthread/cond.h (c11_threads_in_use): New macro.
(pthread_in_use, pth_in_use, thread_in_use): Use it.
* lib/glthread/tls.h (c11_threads_in_use): New macro.
(pthread_in_use, pth_in_use, thread_in_use): Use it.
ChangeLog
lib/glthread/cond.h
lib/glthread/lock.h
lib/glthread/thread.h
lib/glthread/tls.h
m4/threadlib.m4