Bitcoin Core
0.21.1
P2P Digital Currency
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
{
14
fRequestShutdown
=
true
;
15
}
16
void
AbortShutdown
()
17
{
18
fRequestShutdown
=
false
;
19
}
20
bool
ShutdownRequested
()
21
{
22
return
fRequestShutdown
;
23
}
ShutdownRequested
bool ShutdownRequested()
Definition:
shutdown.cpp:20
shutdown.h
fRequestShutdown
static std::atomic< bool > fRequestShutdown(false)
AbortShutdown
void AbortShutdown()
Definition:
shutdown.cpp:16
StartShutdown
void StartShutdown()
Definition:
shutdown.cpp:12
Generated on Fri Apr 30 2021 15:03:06 for Bitcoin Core by
1.8.11