Out vile tabs.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5465 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-10-26 20:09:18 +00:00
parent 8b79a17b6d
commit f17740894e
@@ -118,52 +118,52 @@ public class FutureResult<V>
}
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;
}