pub unsafe extern "C" fn rtapi_task_resume(task_id: c_int) -> c_int
Expand description

’rtapi_task_resume() starts a task in free-running mode. ‘task_id’ is a task ID from a call to rtapi_task_new(). The task must be in the “paused” state, or it will return -EINVAL. A free running task runs continuously until either:

  1. It is prempted by a higher priority task. It will resume as soon as the higher priority task releases the CPU.
  2. It calls a blocking function, like rtapi_sem_take(). It will resume when the function unblocks.
  3. it is returned to the “paused” state by rtapi_task_pause(). May be called from init/cleanup code, and from within realtime tasks.