aboutsummaryrefslogtreecommitdiff
path: root/src/timedata.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:42 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:42 +0200
commitcf13ad23d4f873b41a235ba3c7b22eb81de69f2d (patch)
tree6fe70bcbda258095512711eee44ff7c97699ec69 /src/timedata.cpp
parent012dec034794cf22d55d3d711ca23a2312d1c2aa (diff)
Add Clang thread safety annotations for variables guarded by cs_nTimeOffset
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r--src/timedata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp
index a803b2fc87..d484a1b0d6 100644
--- a/src/timedata.cpp
+++ b/src/timedata.cpp
@@ -17,7 +17,7 @@
static CCriticalSection cs_nTimeOffset;
-static int64_t nTimeOffset = 0;
+static int64_t nTimeOffset GUARDED_BY(cs_nTimeOffset) = 0;
/**
* "Never go to sea with two chronometers; take one or three."