Restored thread checks on database accesses

This commit is contained in:
emeric
2022-01-20 19:56:45 +01:00
parent 9e64287383
commit d52cc71667
4 changed files with 40 additions and 21 deletions
@@ -34,6 +34,10 @@ class RecursiveSharedMutex
void lock_shared();
void unlock_shared();
#ifndef NDEBUG
bool isSharedLocked();
bool isUniqueLocked();
#endif // NDEBUG
private:
std::shared_mutex _mutex;
std::thread::id _uniqueOwner;