aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-06-01 20:23:11 +0200
committerPieter Wuille <[email protected]>2016-06-01 20:38:41 +0200
commit2e0a99037dcc35bc63ba0d54371bc678af737c8e (patch)
tree4cb42cd44838ac03072053f4ce8197f9d85431ef /src/init.cpp
parentMerge #8112: Include signal.h for sig_atomic_t in WIN32 (diff)
parentUse std::atomic for fRequestShutdown and fReopenDebugLog (diff)
downloaddiscoin-2e0a99037dcc35bc63ba0d54371bc678af737c8e.tar.xz
discoin-2e0a99037dcc35bc63ba0d54371bc678af737c8e.zip
Merge #8123: Use std::atomic for fRequestShutdown and fReopenDebugLog
a886dbf Use std::atomic for fRequestShutdown and fReopenDebugLog (Pieter Wuille) 16cf85f Revert "Include signal.h for sig_atomic_t in WIN32" (Pieter Wuille)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 98c089412..9a2250185 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -123,7 +123,7 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
// shutdown thing.
//
-volatile sig_atomic_t fRequestShutdown = false;
+std::atomic<bool> fRequestShutdown(false);
void StartShutdown()
{