[Console] Force terminating the process
This commit is contained in:
parent
b1cc8c8176
commit
78b1c1a597
@ -407,11 +407,7 @@ namespace Components
|
|||||||
// We can not force the termination in this thread
|
// We can not force the termination in this thread
|
||||||
// The destructor would be called in this thread
|
// The destructor would be called in this thread
|
||||||
// and would try to join this thread, which is impossible
|
// and would try to join this thread, which is impossible
|
||||||
std::thread([] ()
|
TerminateProcess(GetCurrentProcess(), 0xFFFFFFFF);
|
||||||
{
|
|
||||||
std::this_thread::sleep_for(200ms);
|
|
||||||
ExitProcess(static_cast<uint32_t>(-1));
|
|
||||||
}).detach();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user