mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Threads and Stop: How about this? A timeout only for the shutdown process? That way the shutdown can either work anyway, or crash, which is simpler than having to open the Task Manager and manually end the deadlocked process.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2401 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -87,11 +87,11 @@ Thread::~Thread()
|
||||
WaitForDeath();
|
||||
}
|
||||
|
||||
void Thread::WaitForDeath()
|
||||
void Thread::WaitForDeath(const int _Wait)
|
||||
{
|
||||
if (m_hThread)
|
||||
{
|
||||
WaitForSingleObject(m_hThread, INFINITE);
|
||||
WaitForSingleObject(m_hThread, _Wait);
|
||||
CloseHandle(m_hThread);
|
||||
m_hThread = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user