6#ifndef BITCOIN_SHUTDOWN_H
7#define BITCOIN_SHUTDOWN_H
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
void WaitForShutdown()
Wait for StartShutdown to be called in any thread.
bool ShutdownRequested()
Returns true if a shutdown is requested, false otherwise.
bool InitShutdownState()
Initialize shutdown state.
void StartShutdown()
Request shutdown of the application.
bool AbortNode(const std::string &strMessage, bilingual_str user_message=bilingual_str{})
Abort with a message.
void AbortShutdown()
Clear shutdown flag.