Workaround pthreads-win32 pthread_rwlock_init limitation.
authorBruce Cran <bruce@cran.org.uk>
Fri, 29 Mar 2013 16:17:25 +0000 (16:17 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Mar 2013 16:38:08 +0000 (10:38 -0600)
commit09f17d62b3bcade70bca6c8660a6a2cb75ab0ca2
tree11bd889b2f08b42ce1a8c06a3207d780adbd9bf3
parentcdb57fe2e6ab3418e0e137282be46201b1f5acc0
Workaround pthreads-win32 pthread_rwlock_init limitation.

On Windows, pthreads-win32 returns EINVAL if you specify an attribute when
calling pthread_rwlock_init. Work around this by only specifying the attribute
when FIO_HAVE_PSHARED_MUTEX is defined.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex.c