diff options
author | Matt Corallo <git@bluematt.me> | 2016-11-25 21:52:44 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-11-26 15:42:48 -0800 |
commit | 047ea1052d4f20c762b1b75099c8421932021b8a (patch) | |
tree | e1630aa6a723ffc27408f2612704c875743f715d /src/main.cpp | |
parent | 42071ca2640c6de156d72a32b52bff1020c4a38d (diff) |
Make fImporting an std::atomic
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 05442057e4..d1ff8699e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -68,7 +68,7 @@ int64_t nTimeBestReceived = 0; // Used only to inform the wallet of when we last CWaitableCriticalSection csBestBlock; CConditionVariable cvBlockChange; int nScriptCheckThreads = 0; -bool fImporting = false; +std::atomic_bool fImporting(false); bool fReindex = false; bool fTxIndex = false; bool fHavePruned = false; |