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");
#define Assert(val)
Identity function.
Context * g_context
Global pointer to kernel::Context for legacy code.
void WaitForShutdown()
Wait for StartShutdown to be called in any thread.
bool ShutdownRequested()
Returns true if a shutdown is requested, false otherwise.
void StartShutdown()
Request shutdown of the application.
void AbortShutdown()
Clear shutdown flag.