Bitcoin Core 28.99.0
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
InitExecutor Class Reference

Class encapsulating Bitcoin Core startup and shutdown. More...

#include <initexecutor.h>

Inheritance diagram for InitExecutor:
[legend]
Collaboration diagram for InitExecutor:
[legend]

Public Slots

void initialize ()
 
void shutdown ()
 

Signals

void initializeResult (bool success, interfaces::BlockAndHeaderTipInfo tip_info)
 
void shutdownResult ()
 
void runawayException (const QString &message)
 

Public Member Functions

 InitExecutor (interfaces::Node &node)
 
 ~InitExecutor ()
 

Private Member Functions

void handleRunawayException (const std::exception *e)
 Pass fatal exception message to UI thread. More...
 

Private Attributes

interfaces::Nodem_node
 
QObject m_context
 
QThread m_thread
 

Detailed Description

Class encapsulating Bitcoin Core startup and shutdown.

Allows running startup and shutdown in a different thread from the UI thread.

Definition at line 22 of file initexecutor.h.

Constructor & Destructor Documentation

◆ InitExecutor()

InitExecutor::InitExecutor ( interfaces::Node node)
explicit

Definition at line 19 of file initexecutor.cpp.

◆ ~InitExecutor()

InitExecutor::~InitExecutor ( )

Definition at line 26 of file initexecutor.cpp.

Member Function Documentation

◆ handleRunawayException()

void InitExecutor::handleRunawayException ( const std::exception *  e)
private

Pass fatal exception message to UI thread.

Definition at line 34 of file initexecutor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize

void InitExecutor::initialize ( )
slot

Definition at line 40 of file initexecutor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeResult

void InitExecutor::initializeResult ( bool  success,
interfaces::BlockAndHeaderTipInfo  tip_info 
)
signal
Here is the caller graph for this function:

◆ runawayException

void InitExecutor::runawayException ( const QString &  message)
signal
Here is the caller graph for this function:

◆ shutdown

void InitExecutor::shutdown ( )
slot

Definition at line 57 of file initexecutor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdownResult

void InitExecutor::shutdownResult ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ m_context

QObject InitExecutor::m_context
private

Definition at line 43 of file initexecutor.h.

◆ m_node

interfaces::Node& InitExecutor::m_node
private

Definition at line 42 of file initexecutor.h.

◆ m_thread

QThread InitExecutor::m_thread
private

Definition at line 44 of file initexecutor.h.


The documentation for this class was generated from the following files: