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

‘rtapi_task_delete()’ deletes a task. ‘task_id’ is a task ID from a previous call to rtapi_task_new(). It frees memory associated with ‘task’, and does any other cleanup needed. If the task has been started, you should pause it before deleting it. Returns a status code. Call only from within init/cleanup code, not from realtime tasks.