rtapi_prio(3rtapi) | RTAPI | rtapi_prio(3rtapi) |
rtapi_prio - thread priority functions
int rtapi_prio_highest()
int rtapi_prio_lowest()
int rtapi_prio_next_higher(int prio)
int rtapi_prio_next_lower(int prio)
The rtapi_prio_xxxx functions provide a portable way to set task priority. The mapping of actual priority to priority number depends on the RTOS. Priorities range from rtapi_prio_lowest to rtapi_prio_highest, inclusive. To use this API, use one of two methods:
N.B. A high priority task will preempt or interrupt a lower priority task. Linux is always the lowest priority!
Call these functions only from within init/cleanup code, not from realtime tasks.
Returns an opaque real-time priority number.
rtapi_task_new(3rtapi)
2006-10-12 | LinuxCNC Documentation |