We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53573e commit fac4558Copy full SHA for fac4558
src/sync.h
@@ -20,7 +20,7 @@
20
////////////////////////////////////////////////
21
22
/*
23
-CCriticalSection mutex;
+RecursiveMutex mutex;
24
std::recursive_mutex mutex;
25
26
LOCK(mutex);
@@ -104,6 +104,7 @@ class LOCKABLE AnnotatedMixin : public PARENT
104
* Wrapped mutex: supports recursive locking, but no waiting
105
* TODO: We should move away from using the recursive lock by default.
106
*/
107
+using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>;
108
typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection;
109
110
/** Wrapped mutex: supports waiting but not recursive locking */
0 commit comments