This commit is contained in:
Wladimir J. van der Laan
2011-08-06 18:45:15 +02:00
7 changed files with 31 additions and 26 deletions

View File

@@ -621,7 +621,10 @@ inline pthread_t CreateThread(void(*pfn)(void*), void* parg, bool fWantHandle=fa
return (pthread_t)0;
}
if (!fWantHandle)
{
pthread_detach(hthread);
return (pthread_t)-1;
}
return hthread;
}