Bitcoin ABC 0.32.4
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
12class ECCVerifyHandle;
13
14namespace kernel {
22struct Context {
23 std::unique_ptr<ECCVerifyHandle> ecc_verify_handle;
24
28
32 Context();
33 ~Context();
34};
35
43extern Context *g_context;
44} // namespace kernel
45
46#endif // BITCOIN_KERNEL_CONTEXT_H
Users of this module must hold an ECCVerifyHandle.
Definition: pubkey.h:223
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:22
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:27
std::unique_ptr< ECCVerifyHandle > ecc_verify_handle
Definition: context.h:23