Use std::atomic for fRequestShutdown and fReopenDebugLog

This commit is contained in:
Pieter Wuille
2016-05-30 15:39:37 +02:00
committed by Simon
parent 3f97a535ee
commit bf673640e3
3 changed files with 4 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ CClientUIInterface uiInterface; // Declared but not defined in ui_interface.h
// shutdown thing.
//
volatile sig_atomic_t fRequestShutdown = false;
std::atomic<bool> fRequestShutdown(false);
void StartShutdown()
{