aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-12-14 16:28:01 -0500
committerMarcoFalke <[email protected]>2018-12-14 16:26:13 -0500
commitfac4558462cb668581c1a6564876f58093901b9c (patch)
tree25096e275855a67f195a52307ba0964e503ab48e
parentMerge #14951: Revert "tests: Support calling add_nodes more than once" (diff)
downloaddiscoin-fac4558462cb668581c1a6564876f58093901b9c.tar.xz
discoin-fac4558462cb668581c1a6564876f58093901b9c.zip
sync: Add RecursiveMutex type alias
-rw-r--r--src/sync.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sync.h b/src/sync.h
index 40709bdd7..3857eda56 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 */