OSDN Git Service

* thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel
authorcgf <cgf>
Tue, 13 Apr 2004 03:25:49 +0000 (03:25 +0000)
committercgf <cgf>
Tue, 13 Apr 2004 03:25:49 +0000 (03:25 +0000)
behavior.

winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc

index ce65d3e..2c91980 100644 (file)
@@ -1,5 +1,10 @@
 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
        synchronization rather than creating a suspended thread.  Wait for
        "cancellation event" to indicate that started thread has been properly
index 24c3f56..d56d731 100644 (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 ();
 }