Use more compatible initializarion of RWLockPosix

This commit is contained in:
Juan Linietsky 2017-01-08 11:35:07 -03:00
parent 263d5fcff8
commit d9ca9d778d

View file

@ -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);
}