diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-08 11:35:07 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-08 11:35:32 -0300 |
commit | d9ca9d778db3e49e2f3376881b4ca11eb6d6d172 (patch) | |
tree | 8580d24bbb0b2a54e195e86f96a96d5fd68b5966 | |
parent | 263d5fcff86ff4b34b2a19bfe66b79e93f6bb976 (diff) |
Use more compatible initializarion of RWLockPosix
-rw-r--r-- | drivers/unix/rw_lock_posix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/rw_lock_posix.cpp b/drivers/unix/rw_lock_posix.cpp index 772a7b812a..b51e5fd420 100644 --- a/drivers/unix/rw_lock_posix.cpp +++ b/drivers/unix/rw_lock_posix.cpp @@ -63,7 +63,8 @@ void RWLockPosix::make_default() { RWLockPosix::RWLockPosix() { - rwlock=PTHREAD_RWLOCK_INITIALIZER; + //rwlock=PTHREAD_RWLOCK_INITIALIZER; fails on OSX + pthread_rwlock_init(&rwlock,NULL); } |