Bitcoin Core  26.99.0
P2P Digital Currency
shutdown.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2021 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 #ifndef BITCOIN_SHUTDOWN_H
7 #define BITCOIN_SHUTDOWN_H
8 
10 void StartShutdown();
11 
15 void AbortShutdown();
16 
18 bool ShutdownRequested();
19 
23 void WaitForShutdown();
24 
25 #endif // BITCOIN_SHUTDOWN_H
void WaitForShutdown()
Wait for StartShutdown to be called in any thread.
Definition: shutdown.cpp:36
bool ShutdownRequested()
Returns true if a shutdown is requested, false otherwise.
Definition: shutdown.cpp:31
void StartShutdown()
Request shutdown of the application.
Definition: shutdown.cpp:16
void AbortShutdown()
Clear shutdown flag.
Definition: shutdown.cpp:26