* thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel

behavior.
This commit is contained in:
Christopher Faylor 2004-04-13 03:25:50 +00:00
parent 3e78b5d75c
commit d84a4e2e71
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-04-12 Christopher Faylor <cgf@alum.bu.edu>
* thread.cc (pthread::thread_init_wrapper): Wait later to get more
parallel behavior.
2004-04-12 Christopher Faylor <cgf@alum.bu.edu>
* thread.cc (pthread::create): Use thread mutex to control

View File

@ -301,10 +301,10 @@ pthread::create (void *(*func) (void *), pthread_attr *newattr,
}
else
{
postcreate ();
if (WaitForSingleObject (cancel_event, 5000) != WAIT_OBJECT_0)
thread_printf ("event never arrived after CreateThread");
ResetEvent (cancel_event);
postcreate ();
}
mutex.unlock ();
}