Bitcoin ABC
0.22.12
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
// 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
}
18
bool
ShutdownRequested
() {
19
return
fRequestShutdown
;
20
}
ShutdownRequested
bool ShutdownRequested()
Definition:
shutdown.cpp:18
shutdown.h
fRequestShutdown
static std::atomic< bool > fRequestShutdown(false)
AbortShutdown
void AbortShutdown()
Definition:
shutdown.cpp:15
StartShutdown
void StartShutdown()
Definition:
shutdown.cpp:12
Generated on Mon Jan 18 2021 21:54:10 for Bitcoin ABC by
1.8.13