PIVX Core  5.6.99
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 // Copyright (c) 2021 The PIVX Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #include "shutdown.h"
8 
9 #include <atomic>
10 
11 
12 static std::atomic<bool> fRequestShutdown{false};
13 
15 {
16  fRequestShutdown = true;
17 }
19 {
20  fRequestShutdown = false;
21 }
23 {
24  return fRequestShutdown;
25 }
bool ShutdownRequested()
Definition: shutdown.cpp:22
void StartShutdown()
Definition: shutdown.cpp:14
void AbortShutdown()
Definition: shutdown.cpp:18