📄 rtapi_prio.3rtapi
字号:
.TH rtapi_prio "3rtapi" "2006-10-12" "EMC Documentation" "RTAPI".SH NAMErtapi_prio \- thread priority functions.SH SYNTAX.HPint rtapi_prio_highest().HPint rtapi_prio_lowest().HPint rtapi_prio_next_higher(int \fIprio\fR).HPint rtapi_prio_next_lower(int \fIprio\fR).SH ARGUMENTS.IP \fIprio\fRA value returned by a prior \fBrtapi_prio_xxx\fR call.SH DESCRIPTIONThe \fBrtapi_prio_xxxx\fR functions provide a portable way to set taskpriority. The mapping of actual priority to priority number depends on theRTOS. Priorities range from \fBrtapi_prio_lowest\fR to\fBrtapi_prio_highest\fR, inclusive. To use this API, use one of two methods:.IP 1)Set your lowest priority task to \fBrtapi_prio_lowest\fR, and foreach task of the next lowest priority, set their priorities to\fBrtapi_prio_next_higher(previous)\fR..IP 2)Set your highest priority task to \fBrtapi_prio_highest\fR, andfor each task of the next highest priority, set their prioritiesto \fBrtapi_prio_next_lower(previous)\fR..PPN.B. A high priority task will pre-empt or interrupt a lower prioritytask. Linux is always the lowest priority!.SH REALTIME CONSIDERATIONSCall these functions only from within init/cleanup code, not from realtimetasks..SH RETURN VALUEReturns an opaque real-time priority number..SH SEE ALSO\fBrtapi_task_new(3rtapi)\fR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -