Bitcoin Core  27.1.0
P2P Digital Currency
abort.h
Go to the documentation of this file.
1 // Copyright (c) 2023 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_ABORT_H
6 #define BITCOIN_NODE_ABORT_H
7 
8 #include <util/translation.h>
9 
10 #include <atomic>
11 #include <string>
12 
13 namespace util {
14 class SignalInterrupt;
15 } // namespace util
16 
17 namespace node {
18 void AbortNode(util::SignalInterrupt* shutdown, std::atomic<int>& exit_status, const std::string& debug_message, const bilingual_str& user_message = {});
19 } // namespace node
20 
21 #endif // BITCOIN_NODE_ABORT_H
Bilingual messages:
Definition: translation.h:18
void AbortNode(util::SignalInterrupt *shutdown, std::atomic< int > &exit_status, const std::string &debug_message, const bilingual_str &user_message)
Definition: abort.cpp:19
Definition: init.h:25
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another threa...
int exit_status