Use std::atomic for fRequestShutdown and fReopenDebugLog

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

View File

@@ -18,6 +18,7 @@
#include "tinyformat.h"
#include "utiltime.h"
#include <atomic>
#include <exception>
#include <map>
#include <stdint.h>
@@ -59,7 +60,7 @@ extern std::string strMiscWarning;
extern bool fLogTimestamps;
extern bool fLogTimeMicros;
extern bool fLogIPs;
extern volatile bool fReopenDebugLog;
extern std::atomic<bool> fReopenDebugLog;
extern CTranslationInterface translationInterface;
extern const char * const BITCOIN_CONF_FILENAME;