diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-12-14 16:28:01 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-12-14 16:26:13 -0500 |
commit | fac4558462cb668581c1a6564876f58093901b9c (patch) | |
tree | 25096e275855a67f195a52307ba0964e503ab48e /src | |
parent | b53573e5c6c7cac3086cbfd22311b31cbc8140ec (diff) |
sync: Add RecursiveMutex type alias
Diffstat (limited to 'src')
-rw-r--r-- | src/sync.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sync.h b/src/sync.h index 40709bdd7f..3857eda56b 100644 --- a/src/sync.h +++ b/src/sync.h @@ -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 */ |