From 012dec034794cf22d55d3d711ca23a2312d1c2aa Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 29 Apr 2018 22:29:26 +0200 Subject: [PATCH] Add Clang thread safety annotations for variables guarded by cs_rpcWarmup --- src/rpc/server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index c7c3b1f0d..23eda7204 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -23,10 +23,10 @@ #include // for unique_ptr #include -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. */