Add Clang thread safety annotations for variables guarded by cs_rpcWarmup

This commit is contained in:
practicalswift 2018-04-29 22:29:26 +02:00
parent 3315007e03
commit 012dec0347
1 changed files with 3 additions and 3 deletions

View File

@ -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. */