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>2001-09-13 05:07:25 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-13 05:07:25 +0400
commitdc02f343bfd15c2737e1b9a3a93e9aca11f35983 (patch)
tree04c35de2f9b4f73ebe71ef6220463c5d2ef73dc6
parent75fc1764dc5def6c8a82d40764138956a0f8077b (diff)
* sync.cc (muto::acquire): Fix while/if typo.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/sync.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 368c0f405..2ea596506 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 12 21:06:38 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * sync.cc (muto::acquire): Fix while/if typo.
+
Wed Sep 12 23:06:00 2001 Corinna Vinschen <corinna@vinschen.de>
* wincap.cc (wincapc::init): Simplify W2K/XP case.
diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc
index 7ef5dc8d8..78df35475 100644
--- a/winsup/cygwin/sync.cc
+++ b/winsup/cygwin/sync.cc
@@ -82,7 +82,7 @@ muto::acquire (DWORD ms)
case, it is possible for a thread which is going to wait for bruteforce
to wake up immediately. It will then attempt to grab sync but will fail
and go back to waiting. */
- while (tid != this_tid && (was_waiting || InterlockedExchange (&sync, 1) != 0))
+ if (tid != this_tid && (was_waiting || InterlockedExchange (&sync, 1) != 0))
{
switch (WaitForSingleObject (bruteforce, ms))
{