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:27 +0000 (17:01 -0500)
commiteec2f6a5c353f28bb74e4a3f96a3da5a50f25574
tree5fc64cf31d580da4cd8df589da7064f958c9743f
parentb197ce865b0de8c475f3ddeadeae3a66b15ace21
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.025394 seconds and 4 git commands to generate.