aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-02-02 18:11:01 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-11-20 20:29:16 -0500
commitfa71eb5196fc157213d7b6364071530ab19df724 (patch)
treef2a5f14ec10c389633b66beed5808ab10fdf6da0 /src/validation.cpp
parent6d58a5c3b05585b01c960776e00856637ff1794d (diff)
Convert comments to thread safety annotations
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 241957878e..6333dd98d2 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -1680,8 +1680,7 @@ void ThreadScriptCheck() {
scriptcheckqueue.Thread();
}
-// Protected by cs_main
-VersionBitsCache versionbitscache;
+VersionBitsCache versionbitscache GUARDED_BY(cs_main);
int32_t ComputeBlockVersion(const CBlockIndex* pindexPrev, const Consensus::Params& params)
{
@@ -1722,8 +1721,7 @@ public:
}
};
-// Protected by cs_main
-static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS];
+static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS] GUARDED_BY(cs_main);
// 0.13.0 was shipped with a segwit deployment defined for testnet, but not for
// mainnet. We no longer need to support disabling the segwit deployment