diff options
author | Christopher Faylor <me@cgf.cx> | 2004-04-13 03:25:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-04-13 03:25:50 +0000 |
commit | d84a4e2e712e83ea6e740fc93b74f1d3f72a67f6 (patch) | |
tree | a8bd343817ed616e70e155609d24748251eeb7e4 /winsup/cygwin | |
parent | 3e78b5d75cc6e88e8730d94d7e73ef269891fd52 (diff) | |
download | cygnal-d84a4e2e712e83ea6e740fc93b74f1d3f72a67f6.tar.gz cygnal-d84a4e2e712e83ea6e740fc93b74f1d3f72a67f6.tar.bz2 cygnal-d84a4e2e712e83ea6e740fc93b74f1d3f72a67f6.zip |
* thread.cc (pthread::thread_init_wrapper): Wait later to get more parallel
behavior.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/thread.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ce65d3e03..2c9198030 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 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 (); } |