Package org.robwork.sdurw_common
Class ThreadTask.TaskState
- java.lang.Object
-
- org.robwork.sdurw_common.ThreadTask.TaskState
-
- Enclosing class:
- ThreadTask
public static final class ThreadTask.TaskState extends java.lang.Object
The different execution states of a task.
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadTask.TaskState
CHILDREN
The run loop has finished, but children are still running.static ThreadTask.TaskState
DONE
The done function has been invoked, and the task is now completed and dead.static ThreadTask.TaskState
EXECUTING
The run function of the task is executing in the pool.static ThreadTask.TaskState
IDLE
The idle function is called and subtasks can still be added.static ThreadTask.TaskState
IN_QUEUE
Task has added its work to the pool, waiting for thread to become available.static ThreadTask.TaskState
INITIALIZATION
Before execute has been called the first time.static ThreadTask.TaskState
POSTWORK
The task does not accept any more new subtasks - the done function is invoked.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadTask.TaskState
swigToEnum(int swigValue)
int
swigValue()
java.lang.String
toString()
-
-
-
Field Detail
-
INITIALIZATION
public static final ThreadTask.TaskState INITIALIZATION
Before execute has been called the first time.
-
IN_QUEUE
public static final ThreadTask.TaskState IN_QUEUE
Task has added its work to the pool, waiting for thread to become available.
-
EXECUTING
public static final ThreadTask.TaskState EXECUTING
The run function of the task is executing in the pool.
-
CHILDREN
public static final ThreadTask.TaskState CHILDREN
The run loop has finished, but children are still running.
-
IDLE
public static final ThreadTask.TaskState IDLE
The idle function is called and subtasks can still be added. If the keep alive has been enabled, the task will stay in this state and not continue to the POSTWORK state.
-
POSTWORK
public static final ThreadTask.TaskState POSTWORK
The task does not accept any more new subtasks - the done function is invoked.
-
DONE
public static final ThreadTask.TaskState DONE
The done function has been invoked, and the task is now completed and dead.
-
-
Method Detail
-
swigValue
public final int swigValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
swigToEnum
public static ThreadTask.TaskState swigToEnum(int swigValue)
-
-