rtapi_task_new.3rtapi
来自「CNC 的开放码,EMC2 V2.2.8版」· 3RTAPI 代码 · 共 40 行
3RTAPI
40 行
.TH rtapi_task_new "3rtapi" "2006-10-12" "EMC Documentation" "RTAPI".SH NAMErtapi_task_new \- create a realtime task.SH SYNTAX.HPint rtapi_task_new(void (*\fItaskcode\fR)(void*), void *\fIarg\fR, int \fIprio\fR, unsigned long \fIstacksize\fR, int \fIuses_fp\fR).HPint rtapi_task_delete(int \fItask_id\fR).HP.SH ARGUMENTS.IP \fItaskcode\fRA pointer to the function to be called when the task is started.IP \fIarg\fRAn argument to be passed to the \fItaskcode\fR function when the task isstarted.IP \fIprio\fRA task priority value returned by \fBrtapi_prio_xxxx\fR.IP \fIuses_fp\fRA flag that tells the OS whether the task uses floating point or not..IP \fItask_id\fRA task ID returned by a previous call to \fBrtapi_task_new\fR.SH DESCRIPTION\fBrtapi_task_new\fR creates but does not start a realtime task. The task iscreated in the "paused" state. To start it, call either \fBrtapi_task_start\fRfor periodic tasks, or \fBrtapi_task_resume\fR for free-running tasks..SH REALTIME CONSIDERATIONSCall only from within init/cleanup code, not from realtime tasks..SH RETURN VALUEOn success, returns a positive integer task ID. This ID is usedfor all subsequent calls that need to act on the task. On failure,returns an RTAPI status code..SH SEE ALSO\fBrtapi_prio(3rtapi)\fR, \fBrtapi_task_start(3rtapi)\fR, \fBrtapi_task_wait(3rtapi)\fR, \fBrtapi_task_resume(3rtapi)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?