Package com.biglybt.core.util
Class NonDaemonTaskRunner
- java.lang.Object
-
- com.biglybt.core.util.NonDaemonTaskRunner
-
public class NonDaemonTaskRunner extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
NonDaemonTaskRunner.taskWrapper
-
Field Summary
Fields Modifier and Type Field Description protected static AEMonitor
class_mon
protected AEThread2
current_thread
static int
LINGER_PERIOD
protected static NonDaemonTaskRunner
singleton
protected AESemaphore
task_sem
protected java.util.List<NonDaemonTaskRunner.taskWrapper>
tasks
protected AEMonitor
tasks_mon
protected java.util.List<AESemaphore>
wait_until_idle_list
-
Constructor Summary
Constructors Constructor Description NonDaemonTaskRunner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static NonDaemonTaskRunner
getSingleton()
static java.lang.Object
run(NonDaemonTask target)
protected java.lang.Object
runSupport(NonDaemonTask target)
static void
waitUntilIdle()
protected void
waitUntilIdleSupport()
-
-
-
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 java.util.List<NonDaemonTaskRunner.taskWrapper> tasks
-
tasks_mon
protected final AEMonitor tasks_mon
-
task_sem
protected final AESemaphore task_sem
-
wait_until_idle_list
protected final java.util.List<AESemaphore> wait_until_idle_list
-
current_thread
protected AEThread2 current_thread
-
-
Method Detail
-
getSingleton
protected static NonDaemonTaskRunner getSingleton()
-
run
public static java.lang.Object run(NonDaemonTask target) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
runSupport
protected java.lang.Object runSupport(NonDaemonTask target) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
waitUntilIdle
public static void waitUntilIdle()
-
waitUntilIdleSupport
protected void waitUntilIdleSupport()
-
-