Merge branch 'tmp2'

This commit is contained in:
Jeff Garzik authored and Jeff Garzik committed 2011-08-04 15:22:05 -04:00
commit bd1e54bc0b
1 file changed
+3
+3
View File
@@ -623,7 +623,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;
}