From dc02f343bfd15c2737e1b9a3a93e9aca11f35983 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 13 Sep 2001 01:07:25 +0000 Subject: * sync.cc (muto::acquire): Fix while/if typo. --- winsup/cygwin/sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/sync.cc') 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)) { -- cgit v1.2.3