From 69a2b8a448e4967450e98c5b277eccfbe429dfa3 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 29 Jun 2022 21:48:48 +0200 Subject: [PATCH] second attempt to fix the compilation --- src/runtime/c/pgf/db.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/db.cxx b/src/runtime/c/pgf/db.cxx index 753ca0032..6412ebe28 100644 --- a/src/runtime/c/pgf/db.cxx +++ b/src/runtime/c/pgf/db.cxx @@ -389,7 +389,7 @@ PgfDB::~PgfDB() if (fd < 0) { pthread_rwlock_destroy(&ms->rwlock); pthread_mutex_destroy(&ms->write_mutex); - pthread_mutex_destroy(&ms->rel_mutex); + pthread_mutex_destroy(&ms->rev_mutex); ::free(ms); ::free(base); } else @@ -1676,6 +1676,7 @@ void PgfDB::resize_map(size_t new_size) throw pgf_systemerror(res); #else while(true) { + LONG temp; while(true) { temp = ms->rwlock; assert(Writer(temp));