File: rtapi_task_self.3rtapi

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (21 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.TH rtapi_task_self "3rtapi" "2015-04-18" "LinuxCNC Documentation" "RTAPI"
.SH NAME

rtapi_task_self \- Retrieve ID of current task

.SH SYNTAX
.HP
void rtapi_task_self()

.SH DESCRIPTION
\fBrtapi_task_self\fR retrieves the current task, or \-EINVAL if not in a
realtime task (e.g., in startup or shutdown code).

.SH REALTIME CONSIDERATIONS
May be called from init/cleanup code, and from within realtime tasks.

.SH RETURN VALUE
The task number previously returned by \fBrtapi_task_new\fR or \-EINVAL.

.SH SEE ALSO
\fBrtapi_task_new(3rtapi)\fR