BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
shutdown.cpp
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2018 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #include <shutdown.h>
7 
8 #include <atomic>
9 
10 static std::atomic<bool> fRequestShutdown(false);
11 
13 {
14  fRequestShutdown = true;
15 }
17 {
18  fRequestShutdown = false;
19 }
21 {
22  return fRequestShutdown;
23 }
bool ShutdownRequested()
Definition: shutdown.cpp:20
void AbortShutdown()
Definition: shutdown.cpp:16
void StartShutdown()
Definition: shutdown.cpp:12