nn::boss::Task::GetState Member FunctionTaskStateCode GetState( bool acknowledge = false, u32 * pCount = NULL, u8 * pStepID = NULL );
| Name | Description | |
|---|---|---|
| in | acknowledge | Stores the "execution complete" status once a task finishes execution so that the execution results can be checked. Calling the function with this flag set to true clears the "execution complete" status. Tasks whose execution counts are non-zero are rescheduled immediately after the previous task execution completes. This causes the return value to switch to TASK_WAITING_TIMER the next time the function is called. (Optional) |
| out | pCount | Returns the remaining count. (Optional) |
| out | pStepID | Returns the task step ID. (Optional) |
Gets the task state. In most cases, tasks transition from step 1 through 5 below.
(1) TASK_REGISTERED (task registered)
(2) TASK_WAITING_TIMER (wait for time after calling Start)
(3) TASK_WAITING (waiting for execution)
(4) TASK_RUNNING or TASK_RETRY (task running)
(5) TASK_DONE or TASK_ERROR (task complete)
There are also two special states, TASK_PAUSED (paused) and TASK_STOPPED (stopped due to a call to Cancel). State transitions may occur in a short period of time. Accordingly, the function may not always return all states.
CONFIDENTIAL