Browse Source

Merge branch 'tmp2'

miguelfreitas
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
bd1e54bc0b
  1. 3
      src/util.h

3
src/util.h

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

Loading…
Cancel
Save