Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
BitcoinCore Class Reference

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

+ Inheritance diagram for BitcoinCore:
+ Collaboration diagram for BitcoinCore:

Public Slots

void initialize ()
 
void shutdown ()
 

Signals

void initializeResult (int retval)
 
void shutdownResult (int retval)
 
void runawayException (const QString &message)
 

Public Member Functions

 BitcoinCore ()
 

Private Member Functions

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

Private Attributes

boost::thread_group threadGroup
 

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 144 of file bitcoin.cpp.

Constructor & Destructor Documentation

BitcoinCore::BitcoinCore ( )
explicit

Definition at line 225 of file bitcoin.cpp.

Member Function Documentation

void BitcoinCore::handleRunawayException ( std::exception *  e)
private

Pass fatal exception message to UI thread.

Definition at line 230 of file bitcoin.cpp.

References PrintExceptionContinue(), runawayException(), and strMiscWarning.

Referenced by initialize(), and shutdown().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void BitcoinCore::initialize ( )
slot

Definition at line 236 of file bitcoin.cpp.

References AppInit2(), handleRunawayException(), initializeResult(), LogPrintf, StartDummyRPCThread(), and threadGroup.

+ Here is the call graph for this function:

void BitcoinCore::initializeResult ( int  retval)
signal

Referenced by initialize().

+ Here is the caller graph for this function:

void BitcoinCore::runawayException ( const QString &  message)
signal

Referenced by handleRunawayException().

+ Here is the caller graph for this function:

void BitcoinCore::shutdown ( )
slot

Definition at line 257 of file bitcoin.cpp.

References handleRunawayException(), LogPrintf, Shutdown(), shutdownResult(), and threadGroup.

+ Here is the call graph for this function:

void BitcoinCore::shutdownResult ( int  retval)
signal

Referenced by shutdown().

+ Here is the caller graph for this function:

Field Documentation

boost::thread_group BitcoinCore::threadGroup
private

Definition at line 160 of file bitcoin.cpp.

Referenced by initialize(), and shutdown().


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