Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-06-10 00:59:59 +0400
committerChristopher Faylor <me@cgf.cx>2005-06-10 00:59:59 +0400
commitfa0dcd0d650d47e33d3301f107580bbf3e7afa69 (patch)
tree3bda163df4eca5115fc99409d8287182eefdf564
parent85cd5c3d579a93e2531ebf3f361652ef10bdf93f (diff)
* thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than
WaitForSingleObject.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/thread.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 14a52ed0b..1731086bb 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 1ba384794..f1714d2bb 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);
}