aboutsummaryrefslogtreecommitdiff
path: root/src/sync.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-01-07 23:14:15 +0700
committerMarcoFalke <falke.marco@gmail.com>2020-01-15 01:43:46 +0700
commit6cbe6209646db8914b87bf6edbc18c6031a16f1e (patch)
tree1b30ad3bd585cc3e91cf036943c195b25dfd4a19 /src/sync.cpp
parentceb789cf3a9075729efa07f5114ce0369d8606c3 (diff)
downloadbitcoin-6cbe6209646db8914b87bf6edbc18c6031a16f1e.tar.xz
scripted-diff: Replace CCriticalSection with RecursiveMutex
-BEGIN VERIFY SCRIPT- # Delete outdated alias for RecursiveMutex sed -i -e '/CCriticalSection/d' ./src/sync.h # Replace use of outdated alias with RecursiveMutex sed -i -e 's/CCriticalSection/RecursiveMutex/g' $(git grep -l CCriticalSection) -END VERIFY SCRIPT-
Diffstat (limited to 'src/sync.cpp')
-rw-r--r--src/sync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.cpp b/src/sync.cpp
index 3c88becb6a..7a546ef0f7 100644
--- a/src/sync.cpp
+++ b/src/sync.cpp
@@ -75,7 +75,7 @@ typedef std::set<std::pair<void*, void*> > InvLockOrders;
struct LockData {
// Very ugly hack: as the global constructs and destructors run single
// threaded, we use this boolean to know whether LockData still exists,
- // as DeleteLock can get called by global CCriticalSection destructors
+ // as DeleteLock can get called by global RecursiveMutex destructors
// after LockData disappears.
bool available;
LockData() : available(true) {}