Skip to content

Commit fac4558

Browse files
author
MarcoFalke
committed
sync: Add RecursiveMutex type alias
1 parent b53573e commit fac4558

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sync.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
////////////////////////////////////////////////
2121

2222
/*
23-
CCriticalSection mutex;
23+
RecursiveMutex mutex;
2424
std::recursive_mutex mutex;
2525
2626
LOCK(mutex);
@@ -104,6 +104,7 @@ class LOCKABLE AnnotatedMixin : public PARENT
104104
* Wrapped mutex: supports recursive locking, but no waiting
105105
* TODO: We should move away from using the recursive lock by default.
106106
*/
107+
using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>;
107108
typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection;
108109

109110
/** Wrapped mutex: supports waiting but not recursive locking */

0 commit comments

Comments
 (0)