Reverted changes in the Win32/ThreadImpl (didn't compile on MinGW and Windows < Vista)
This commit is contained in:
parent
e065b95db6
commit
d497401e3a
@ -57,13 +57,8 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user