diff options
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); } |