private DoTestTimeout ( bool multiThreaded, bool greedy ) : void | ||
multiThreaded | bool | |
greedy | bool | |
리턴 | void |
public override void Run() { if (withTimeout) { outerInstance.DoTestTimeout(true, true); } else { outerInstance.DoTestSearch(); } lock (success) { success.Set(num); } }
public override void Run() { if (withTimeout) { outerInstance.DoTestTimeout(true, true); } else { outerInstance.DoTestSearch(); } UninterruptableMonitor.Enter(success); try { success.Set(num); } finally { UninterruptableMonitor.Exit(success); } }