Use more compatible initializarion of RWLockPosix
This commit is contained in:
parent
263d5fcff8
commit
d9ca9d778d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue