From f17740894ebd66e98a8be0afce771f52bac6bd43 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 26 Oct 2008 20:09:18 +0000 Subject: [PATCH] Out vile tabs. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5465 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../presents/util/FutureResult.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/java/com/threerings/presents/util/FutureResult.java b/src/java/com/threerings/presents/util/FutureResult.java index 14f20c325..23687b426 100644 --- a/src/java/com/threerings/presents/util/FutureResult.java +++ b/src/java/com/threerings/presents/util/FutureResult.java @@ -118,52 +118,52 @@ public class FutureResult } public void innerSet (V v) { - for (;;) { - int s = getState(); - if (s == RAN) { - return; + for (;;) { + int s = getState(); + if (s == RAN) { + return; } if (s == CANCELLED) { releaseShared(0); return; } - if (compareAndSetState(s, RAN)) { + if (compareAndSetState(s, RAN)) { _result = v; releaseShared(0); - return; + return; } } } public void innerSetException (Throwable t) { - for (;;) { - int s = getState(); - if (s == RAN) { - return; + for (;;) { + int s = getState(); + if (s == RAN) { + return; } if (s == CANCELLED) { releaseShared(0); return; } - if (compareAndSetState(s, RAN)) { + if (compareAndSetState(s, RAN)) { _exception = t; _result = null; releaseShared(0); - return; + return; } - } + } } public boolean innerCancel (boolean mayInterruptIfRunning) { - for (;;) { - int s = getState(); - if (ranOrCancelled(s)) { - return false; + for (;;) { + int s = getState(); + if (ranOrCancelled(s)) { + return false; } - if (compareAndSetState(s, CANCELLED)) { - break; + if (compareAndSetState(s, CANCELLED)) { + break; } - } + } releaseShared(0); return true; }