added mutex for single writer exclusion

This commit is contained in:
Krasimir Angelov
2022-06-29 16:28:01 +02:00
parent edb9ff33c5
commit 88477a8834
2 changed files with 167 additions and 79 deletions

View File

@@ -81,7 +81,8 @@ private:
#else
DWORD pid;
HANDLE hMap;
HANDLE hMutex;
HANDLE hRevMutex;
HANDLE hWriteMutex;
HANDLE hRWEvent;
#endif
@@ -162,6 +163,7 @@ public:
~DB_scope();
private:
DB_scope_mode mode;
PgfDB* save_db;
DB_scope* next_scope;
};