diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-01-07 23:14:15 +0700 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-01-15 01:43:46 +0700 |
commit | 6cbe6209646db8914b87bf6edbc18c6031a16f1e (patch) | |
tree | 1b30ad3bd585cc3e91cf036943c195b25dfd4a19 /src/rpc/server.cpp | |
parent | ceb789cf3a9075729efa07f5114ce0369d8606c3 (diff) |
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/rpc/server.cpp')
-rw-r--r-- | src/rpc/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 91d3e1fca4..937ffab1d6 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -18,7 +18,7 @@ #include <memory> // for unique_ptr #include <unordered_map> -static CCriticalSection cs_rpcWarmup; +static RecursiveMutex cs_rpcWarmup; static std::atomic<bool> g_rpc_running{false}; static bool fRPCInWarmup GUARDED_BY(cs_rpcWarmup) = true; static std::string rpcWarmupStatus GUARDED_BY(cs_rpcWarmup) = "RPC server started"; |