14 #include <QMetaObject> 28 qDebug() << __func__ <<
": Stopping thread";
31 qDebug() << __func__ <<
": Stopped thread";
42 QMetaObject::invokeMethod(&
m_context, [
this] {
45 qDebug() <<
"Running initialization in thread";
49 }
catch (
const std::exception& e) {
59 QMetaObject::invokeMethod(&
m_context, [
this] {
61 qDebug() <<
"Running Shutdown in thread";
63 qDebug() <<
"Shutdown finished";
65 }
catch (
const std::exception& e) {
InitExecutor(interfaces::Node &node)
void ThreadRename(std::string &&)
Rename a thread both in terms of an internal (in-memory) name as well as its system thread name...
void PrintExceptionContinue(const std::exception *pex, std::string_view thread_name)
virtual bilingual_str getWarnings()=0
Get warnings.
Block and header tip information.
virtual void appShutdown()=0
Stop node.
interfaces::Node & m_node
void handleRunawayException(const std::exception *e)
Pass fatal exception message to UI thread.
void initializeResult(bool success, interfaces::BlockAndHeaderTipInfo tip_info)
void runawayException(const QString &message)
Top-level interface for a bitcoin node (bitcoind process).
virtual bool appInitMain(interfaces::BlockAndHeaderTipInfo *tip_info=nullptr)=0
Start node.