Function linuxcnc_hal_sys::rtapi_task_resume
source · 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:
- It is prempted by a higher priority task. It will resume as soon as the higher priority task releases the CPU.
- It calls a blocking function, like rtapi_sem_take(). It will resume when the function unblocks.
- it is returned to the “paused” state by rtapi_task_pause(). May be called from init/cleanup code, and from within realtime tasks.