RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
Loading...
Searching...
No Matches
ShutdownUtils Namespace Reference

Functions

void ArmDeadManKill (unsigned timeoutMs)
 

Function Documentation

◆ ArmDeadManKill()

void ShutdownUtils::ArmDeadManKill ( unsigned timeoutMs)
inline

Definition at line 10 of file main.cpp.

11 {
12 std::thread([timeoutMs]()
13 {
14 std::this_thread::sleep_for(std::chrono::milliseconds(timeoutMs));
15 TerminateProcess(GetCurrentProcess(), 0); // hard kill (OS reclaims everything)
16 })
17 .detach();
18 }
Here is the caller graph for this function: