From fa0dcd0d650d47e33d3301f107580bbf3e7afa69 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 9 Jun 2005 20:59:59 +0000 Subject: * thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than WaitForSingleObject. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/thread.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + * thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than + WaitForSingleObject. + +2005-06-09 Christopher Faylor + * cygwin.sc: Place .cygwin_dll_common in a more sensible spot. 2005-06-09 Christopher Faylor 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); } -- cgit v1.1