Bitcoin ABC 0.32.10
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
9
10#include <memory>
11
12namespace kernel {
20struct Context {
24
28 Context();
29 ~Context();
30};
31
39extern Context *g_context;
40} // namespace kernel
41
42#endif // BITCOIN_KERNEL_CONTEXT_H
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another threa...
Definition: init.h:28
Context * g_context
Global pointer to kernel::Context for legacy code.
Definition: context.cpp:16
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:18
util::SignalInterrupt interrupt
Interrupt object that can be used to stop long-running kernel operations.
Definition: context.h:23