From 61496ed68038c4baa13937488b8c141501b0c0c4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 5 Jun 2005 04:07:46 +0000 Subject: * sync.cc (muto::acquire): Remove unneeded brackets and fix whitespace. --- winsup/cygwin/sync.cc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'winsup/cygwin/sync.cc') diff --git a/winsup/cygwin/sync.cc b/winsup/cygwin/sync.cc index 68539a2..797deed 100644 --- a/winsup/cygwin/sync.cc +++ b/winsup/cygwin/sync.cc @@ -94,16 +94,14 @@ muto::acquire (DWORD ms) LONG was_waiting = ms ? InterlockedIncrement (&waiters) : 0; while (was_waiting || InterlockedExchange (&sync, 1) != 0) - { - switch (WaitForSingleObject (bruteforce, ms)) - { - case WAIT_OBJECT_0: - was_waiting = 0; - break; - default: - return 0; /* failed. */ - } - } + switch (WaitForSingleObject (bruteforce, ms)) + { + case WAIT_OBJECT_0: + was_waiting = 0; + break; + default: + return 0; /* failed. */ + } /* Have to do it this way to avoid a race */ if (!ms) -- cgit v1.1