Fix: pthread_rwlock initialization on Cygwin
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 23 Nov 2018 21:47:18 +0000 (16:47 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Nov 2018 22:01:30 +0000 (17:01 -0500)
commitff981126c2eceae4c69bb0409e897ead8254275c
tree9ccb11b9f39293a9e7e42ed6261bf498585aa875
parent44744c8fe51e3f1897c113f09ffdcbfedacb208e
Fix: pthread_rwlock initialization on Cygwin

On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is not
sufficient to get a properly initialized pthread_rwlock_t
struct. Use the pthread_rwlock_init function instead which
should work on all platforms.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/benchmark/test_rwlock.c
tests/benchmark/test_rwlock_timing.c
This page took 0.025166 seconds and 4 git commands to generate.