AppCode:Debugger: Cannot restart simulator when app was previously on a breakpoint (OC-1322)

AppCode:Simulator: starting simulator rewritten to avoid deadlocks and UI blocking
This commit is contained in:
Anton Makeev
2012-03-15 13:21:11 +01:00
parent 6aa6816b82
commit 4d8960aa7f
@@ -2,6 +2,7 @@ package com.intellij.util.concurrency;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.Ref;
import org.jetbrains.annotations.Nullable;
import java.util.concurrent.*;
import java.util.concurrent.Semaphore;
@@ -27,7 +28,7 @@ public class FutureResult<T> implements Future<T> {
return myValue != null;
}
public void set(T result) {
public void set(@Nullable T result) {
assert myValue == null;
myValue = Ref.create(Pair.create((Object)result, true));