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

’rtapi_task_pause() causes ‘task_id’ to stop execution and change to the “paused” state. ‘task_id’ can be free-running or periodic. Note that rtapi_task_pause() may called from any task, or from init or cleanup code, not just from the task that is to be paused. The task will resume execution when either rtapi_task_resume() or rtapi_task_start() is called. May be called from init/cleanup code, and from within realtime tasks.