Bitcoin Core  26.99.0
P2P Digital Currency
Functions
shutdown.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void StartShutdown ()
 Request shutdown of the application. More...
 
void AbortShutdown ()
 Clear shutdown flag. More...
 
bool ShutdownRequested ()
 Returns true if a shutdown is requested, false otherwise. More...
 
void WaitForShutdown ()
 Wait for StartShutdown to be called in any thread. More...
 

Function Documentation

◆ AbortShutdown()

void AbortShutdown ( )

Clear shutdown flag.

Only use this during init (before calling WaitForShutdown in any thread), or in the unit tests. Calling it in other circumstances will cause a race condition.

Definition at line 26 of file shutdown.cpp.

Here is the caller graph for this function:

◆ ShutdownRequested()

bool ShutdownRequested ( )

Returns true if a shutdown is requested, false otherwise.

Definition at line 31 of file shutdown.cpp.

Here is the caller graph for this function:

◆ StartShutdown()

void StartShutdown ( )

Request shutdown of the application.

Definition at line 16 of file shutdown.cpp.

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

◆ WaitForShutdown()

void WaitForShutdown ( )

Wait for StartShutdown to be called in any thread.

This can only be used from a single thread.

Definition at line 36 of file shutdown.cpp.

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