mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 02:38:55 -06:00
an attempt to fix the failure on MacOS
This commit is contained in:
@@ -696,6 +696,7 @@ void PgfDB::init_state(size_t size)
|
|||||||
throw pgf_systemerror(code);
|
throw pgf_systemerror(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
memset(&ms->rwlock, 0, sizeof(ms->rwlock));
|
||||||
if ((code = pthread_rwlock_init(&ms->rwlock, &attr)) != 0) {
|
if ((code = pthread_rwlock_init(&ms->rwlock, &attr)) != 0) {
|
||||||
pthread_rwlockattr_destroy(&attr);
|
pthread_rwlockattr_destroy(&attr);
|
||||||
throw pgf_systemerror(code);
|
throw pgf_systemerror(code);
|
||||||
|
|||||||
Reference in New Issue
Block a user