Remove unnecessary thread
This commit is contained in:
parent
01d5f02d28
commit
ac6c592e51
@ -402,15 +402,7 @@ namespace Components
|
|||||||
// Force process termination
|
// Force process termination
|
||||||
// if the main thread is not responding
|
// if the main thread is not responding
|
||||||
OutputDebugStringA("Process termination forced, as the main thread is not responding!");
|
OutputDebugStringA("Process termination forced, as the main thread is not responding!");
|
||||||
|
ExitProcess(static_cast<uint32_t>(-1));
|
||||||
// We can not force the termination in this thread
|
|
||||||
// The destructor would be called in this thread
|
|
||||||
// and would try to join this thread, which is impossible
|
|
||||||
std::thread([] ()
|
|
||||||
{
|
|
||||||
std::this_thread::sleep_for(200ms);
|
|
||||||
ExitProcess(static_cast<uint32_t>(-1));
|
|
||||||
}).detach();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user