14 #include <system_error> 20 }
catch (
const std::system_error&) {
21 LogPrintf(
"Sending shutdown token failed\n");
40 }
catch (
const std::system_error&) {
41 LogPrintf(
"Reading shutdown token failed\n");
bool ShutdownRequested()
Returns true if a shutdown is requested, false otherwise.
void WaitForShutdown()
Wait for StartShutdown to be called in any thread.
void AbortShutdown()
Clear shutdown flag.
void StartShutdown()
Request shutdown of the application.
Context * g_context
Global pointer to kernel::Context for legacy code.
#define Assert(val)
Identity function.