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:
Diffstat (limited to 'winsup/cygwin/sync.cc')
-rw-r--r--winsup/cygwin/sync.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc
index 2116ed0a8..f65e5a8e1 100644
--- a/winsup/cygwin/sync.cc
+++ b/winsup/cygwin/sync.cc
@@ -69,8 +69,10 @@ int
muto::acquire (DWORD ms)
{
DWORD this_tid = GetCurrentThreadId ();
+#if 0
if (exiting_thread)
return this_tid == exiting_thread;
+#endif
if (tid != this_tid)
{
@@ -113,8 +115,6 @@ int
muto::release ()
{
DWORD this_tid = GetCurrentThreadId ();
- if (exiting_thread)
- return this_tid == exiting_thread;
if (tid != this_tid || !visits)
{