diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-09 20:59:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-09 20:59:59 +0000 |
commit | fa0dcd0d650d47e33d3301f107580bbf3e7afa69 (patch) | |
tree | 3bda163df4eca5115fc99409d8287182eefdf564 | |
parent | 85cd5c3d579a93e2531ebf3f361652ef10bdf93f (diff) | |
download | newlib-fa0dcd0d650d47e33d3301f107580bbf3e7afa69.zip newlib-fa0dcd0d650d47e33d3301f107580bbf3e7afa69.tar.gz newlib-fa0dcd0d650d47e33d3301f107580bbf3e7afa69.tar.bz2 |
* thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than
WaitForSingleObject.
-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 14a52ed..1731086 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2005-06-09 Christopher Faylor <cgf@timesys.com> + * thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than + WaitForSingleObject. + +2005-06-09 Christopher Faylor <cgf@timesys.com> + * cygwin.sc: Place .cygwin_dll_common in a more sensible spot. 2005-06-09 Christopher Faylor <cgf@timesys.com> diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 1ba3847..f1714d2 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -1554,7 +1554,7 @@ pthread_mutex::_lock (pthread_t self) } else { - WaitForSingleObject (win32_obj_id, INFINITE); + cancelable_wait (win32_obj_id, INFINITE, false, cw_sig_resume); set_owner (self); } |