Fix win32 SGThread::join timeout.

This commit is contained in:
Mathias Froehlich
2011-09-08 17:41:21 +02:00
parent b0015ab6e8
commit 8fba4b0cbe

View File

@@ -71,7 +71,7 @@ struct SGThread::PrivateData {
{
if (_handle == INVALID_HANDLE_VALUE)
return;
DWORD ret = WaitForSingleObject(_handle, 0);
DWORD ret = WaitForSingleObject(_handle, INFINITE);
if (ret != WAIT_OBJECT_0)
return;
CloseHandle(_handle);