14#include <system_error>
19 }
catch (
const std::system_error &) {
20 LogPrintf(
"Sending shutdown token failed\n");
36 }
catch (
const std::system_error &) {
37 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.