Bitcoin ABC  0.22.12
P2P Digital Currency
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 
12 void StartShutdown() {
13  fRequestShutdown = true;
14 }
15 void AbortShutdown() {
16  fRequestShutdown = false;
17 }
19  return fRequestShutdown;
20 }
bool ShutdownRequested()
Definition: shutdown.cpp:18
static std::atomic< bool > fRequestShutdown(false)
void AbortShutdown()
Definition: shutdown.cpp:15
void StartShutdown()
Definition: shutdown.cpp:12