From d84a4e2e712e83ea6e740fc93b74f1d3f72a67f6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 13 Apr 2004 03:25:50 +0000 Subject: * thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel behavior. --- winsup/cygwin/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/thread.cc') diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 24c3f56ce..d56d731c8 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -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 (); } -- cgit v1.2.3