Bitcoin Core  25.99.0
P2P Digital Currency
context.h
Go to the documentation of this file.
1 // Copyright (c) 2022 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_KERNEL_CONTEXT_H
6 #define BITCOIN_KERNEL_CONTEXT_H
7 
8 #include <util/signalinterrupt.h>
9 
10 #include <memory>
11 
12 namespace kernel {
20 struct Context {
23 
27  Context();
28  ~Context();
29 };
30 
38 extern Context* g_context;
39 } // namespace kernel
40 
41 #endif // BITCOIN_KERNEL_CONTEXT_H
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another threa...
Context * g_context
Global pointer to kernel::Context for legacy code.
Definition: context.cpp:17
Context struct holding the kernel library's logically global state, and passed to external libbitcoin...
Definition: context.h:20
Context()
Declare default constructor and destructor that are not inline, so code instantiating the kernel::Con...
Definition: context.cpp:19
util::SignalInterrupt interrupt
Interrupt object that can be used to stop long-running kernel operations.
Definition: context.h:22