aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:26 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:26 +0200
commit012dec034794cf22d55d3d711ca23a2312d1c2aa (patch)
tree7d7f77f65a30429329b13a14e53f68cf19fa5d32 /src/rpc/server.cpp
parent3315007e03f5cc6c89a221ec7e0bc09a89858304 (diff)
Add Clang thread safety annotations for variables guarded by cs_rpcWarmup
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index c7c3b1f0d3..23eda7204b 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -23,10 +23,10 @@
#include <memory> // for unique_ptr
#include <unordered_map>
-static bool fRPCRunning = false;
-static bool fRPCInWarmup = true;
-static std::string rpcWarmupStatus("RPC server started");
static CCriticalSection cs_rpcWarmup;
+static bool fRPCRunning = false;
+static bool fRPCInWarmup GUARDED_BY(cs_rpcWarmup) = true;
+static std::string rpcWarmupStatus GUARDED_BY(cs_rpcWarmup) = "RPC server started";
/* Timer-creating functions */
static RPCTimerInterface* timerInterface = nullptr;
/* Map of name to timer. */