rtapi_task_self(3rtapi) | RTAPI | rtapi_task_self(3rtapi) |
rtapi_task_self - Retrieve ID of current task
void rtapi_task_self()
rtapi_task_self retrieves the current task, or -EINVAL if not in a realtime task (e.g., in startup or shutdown code).
May be called from init/cleanup code, and from within realtime tasks.
The task number previously returned by rtapi_task_new or -EINVAL.
rtapi_task_new(3rtapi)
2015-04-18 | LinuxCNC Documentation |