]> Savannah Git Hosting - gnulib.git/commit
lock tests: Prefer semaphore over mutex.
authorBruno Haible <bruno@clisp.org>
Thu, 5 Jan 2017 22:49:34 +0000 (23:49 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 5 Jan 2017 22:53:01 +0000 (23:53 +0100)
commitb20e8afb0b2cc9548fac073d71fcd19ede29ce60
tree1827e599e70db3379e2868dcead393bf6c8612e5
parent73ecb533f82b613245451f05d12726a41ceca95d
lock tests: Prefer semaphore over mutex.

* tests/test-lock.c (USE_SEMAPHORE): New constant.
(struct atomic_int, init_atomic_int, get_atomic_int_value,
set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
Suggested by Torvald Riegel <triegel@redhat.com>.
ChangeLog
tests/test-lock.c