an attempt to fix the failure on MacOS

This commit is contained in:
krangelov
2021-11-16 09:36:26 +01:00
parent f5e6c695a7
commit c26f3b3cd5

View File

@@ -696,6 +696,7 @@ void PgfDB::init_state(size_t size)
throw pgf_systemerror(code);
}
}
memset(&ms->rwlock, 0, sizeof(ms->rwlock));
if ((code = pthread_rwlock_init(&ms->rwlock, &attr)) != 0) {
pthread_rwlockattr_destroy(&attr);
throw pgf_systemerror(code);