Reverted changes in the Win32/ThreadImpl (didn't compile on MinGW and Windows < Vista)
This commit is contained in:
parent
e065b95db6
commit
d497401e3a
@ -57,12 +57,7 @@ ThreadImpl::~ThreadImpl()
|
||||
void ThreadImpl::Wait()
|
||||
{
|
||||
if (myThread)
|
||||
{
|
||||
// The following condition avoids a deadlock if Wait() is called from its
|
||||
// owner thread. This makes the behaviour consistent with the Unix implementation
|
||||
if (GetThreadId(myThread) != GetCurrentThreadId())
|
||||
WaitForSingleObject(myThread, INFINITE);
|
||||
}
|
||||
WaitForSingleObject(myThread, INFINITE);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user