org.gudy.azureus2.core3.util
Class NonDaemonTaskRunner
java.lang.Object
org.gudy.azureus2.core3.util.NonDaemonTaskRunner
public class NonDaemonTaskRunner
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINGER_PERIOD
public static final int LINGER_PERIOD
- See Also:
- Constant Field Values
singleton
protected static NonDaemonTaskRunner singleton
class_mon
protected static final AEMonitor class_mon
tasks
protected final java.util.Stack tasks
tasks_mon
protected final AEMonitor tasks_mon
task_sem
protected final AESemaphore task_sem
wait_until_idle_list
protected final java.util.List wait_until_idle_list
current_thread
protected AEThread2 current_thread
NonDaemonTaskRunner
public NonDaemonTaskRunner()
getSingleton
protected static NonDaemonTaskRunner getSingleton()
run
public static java.lang.Object run(NonDaemonTask target)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
runAsync
public static java.lang.Object runAsync(NonDaemonTask target)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
runSupport
protected java.lang.Object runSupport(NonDaemonTask target,
boolean async)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
waitUntilIdle
public static void waitUntilIdle()
waitUntilIdleSupport
protected void waitUntilIdleSupport()