org.gudy.azureus2.core3.util
Class NonDaemonTaskRunner

java.lang.Object
  extended by org.gudy.azureus2.core3.util.NonDaemonTaskRunner

public class NonDaemonTaskRunner
extends Object


Nested Class Summary
protected static class NonDaemonTaskRunner.taskWrapper
           
 
Field Summary
protected static AEMonitor class_mon
           
protected  AEThread2 current_thread
           
static int LINGER_PERIOD
           
protected static NonDaemonTaskRunner singleton
           
protected  AESemaphore task_sem
           
protected  Stack tasks
           
protected  AEMonitor tasks_mon
           
protected  List wait_until_idle_list
           
 
Constructor Summary
NonDaemonTaskRunner()
           
 
Method Summary
protected static NonDaemonTaskRunner getSingleton()
           
static Object run(NonDaemonTask target)
           
static Object runAsync(NonDaemonTask target)
           
protected  Object runSupport(NonDaemonTask target, boolean async)
           
static void waitUntilIdle()
           
protected  void waitUntilIdleSupport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Stack tasks

tasks_mon

protected final AEMonitor tasks_mon

task_sem

protected final AESemaphore task_sem

wait_until_idle_list

protected final List wait_until_idle_list

current_thread

protected AEThread2 current_thread
Constructor Detail

NonDaemonTaskRunner

public NonDaemonTaskRunner()
Method Detail

getSingleton

protected static NonDaemonTaskRunner getSingleton()

run

public static Object run(NonDaemonTask target)
                  throws Throwable
Throws:
Throwable

runAsync

public static Object runAsync(NonDaemonTask target)
                       throws Throwable
Throws:
Throwable

runSupport

protected Object runSupport(NonDaemonTask target,
                            boolean async)
                     throws Throwable
Throws:
Throwable

waitUntilIdle

public static void waitUntilIdle()

waitUntilIdleSupport

protected void waitUntilIdleSupport()