Reverted changes in the Win32/ThreadImpl (didn't compile on MinGW and Windows < Vista)

This commit is contained in:
Laurent Gomila 2011-06-14 08:09:32 +02:00
parent e065b95db6
commit d497401e3a

View File

@ -57,12 +57,7 @@ ThreadImpl::~ThreadImpl()
void ThreadImpl::Wait() void ThreadImpl::Wait()
{ {
if (myThread) 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);
}
} }