Add Clang thread safety annotations for variables guarded by cs_rpcWarmup
This commit is contained in:
parent
3315007e03
commit
012dec0347
1 changed files with 3 additions and 3 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue