rtems_status_code rtems_task_resume( rtems_id id );
RTEMS_SUCCESSFUL
- task restarted successfully
RTEMS_INVALID_ID
- task id invalid
RTEMS_INCORRECT_STATE
- task not suspended
This directive removes the task specified by id from the suspended state. If the task is in the ready state after the suspension is removed, then it will be scheduled to run. If the task is still in a blocked state after the suspension is removed, then it will remain in that blocked state.
The running task may be preempted if its preemption mode is enabled and the local task being resumed has a higher priority.
Resuming a global task which does not reside on the local node will generate a request to the remote node to resume the specified task.
If the task specified by id is not suspended, then the
RTEMS_INCORRECT_STATE
status code is returned.
Copyright © 1988-2004 OAR Corporation