sync: Add RecursiveMutex type alias

This commit is contained in:
MarcoFalke 2018-12-14 16:28:01 -05:00
parent b53573e5c6
commit fac4558462
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -20,7 +20,7 @@
////////////////////////////////////////////////
/*
CCriticalSection mutex;
RecursiveMutex mutex;
std::recursive_mutex mutex;
LOCK(mutex);
@ -104,6 +104,7 @@ public:
* Wrapped mutex: supports recursive locking, but no waiting
* TODO: We should move away from using the recursive lock by default.
*/
using RecursiveMutex = AnnotatedMixin<std::recursive_mutex>;
typedef AnnotatedMixin<std::recursive_mutex> CCriticalSection;
/** Wrapped mutex: supports waiting but not recursive locking */