PIVX Core
5.6.99
P2P Digital Currency
src
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
14
void
StartShutdown
()
15
{
16
fRequestShutdown =
true
;
17
}
18
void
AbortShutdown
()
19
{
20
fRequestShutdown =
false
;
21
}
22
bool
ShutdownRequested
()
23
{
24
return
fRequestShutdown;
25
}
ShutdownRequested
bool ShutdownRequested()
Definition:
shutdown.cpp:22
StartShutdown
void StartShutdown()
Definition:
shutdown.cpp:14
AbortShutdown
void AbortShutdown()
Definition:
shutdown.cpp:18
shutdown.h
Generated on Wed Apr 2 2025 00:40:35 for PIVX Core by
1.9.1