mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Async power commands
This commit is contained in:
parent
6e12c294b2
commit
6e4cfbcb8c
@ -21,8 +21,21 @@ namespace Recovery
|
||||
}
|
||||
|
||||
void RecoveryThreadWrapper() { RecoveryScreen->RecoveryThread(); }
|
||||
void RebootCommandWrapper() { PowerManager->Reboot(); }
|
||||
void ShutdownCommandWrapper() { PowerManager->Shutdown(); }
|
||||
|
||||
void RebootCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
PowerManager->Reboot();
|
||||
}
|
||||
|
||||
void ShutdownCommandThread()
|
||||
{
|
||||
TaskManager->Sleep(1000);
|
||||
PowerManager->Shutdown();
|
||||
}
|
||||
|
||||
void RebootCommandWrapper() { TaskManager->CreateThread(TaskManager->GetCurrentProcess(), (IP)RebootCommandThread); }
|
||||
void ShutdownCommandWrapper() { TaskManager->CreateThread(TaskManager->GetCurrentProcess(), (IP)ShutdownCommandThread); }
|
||||
|
||||
GraphicalUserInterface::GUI *gui = nullptr;
|
||||
void GUIWrapper() { gui->Loop(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user