tk_get_tid

Get Task Identifier

See Also

[C Language Interface]

ID tskid = tk_get_tid ( ) ;

[Parameters]

None

[Return Parameters]

ID	tskid	ID of the task in RUN state

[Error Codes]

None

[Description]

Gets the ID number of the task currently in RUN state. Unless the task-independent portion is executing, the current RUN state task will be the invoking task.

If there is no task currently in RUN state, 0 is returned.

[Additional Notes]

The task ID returned by tk_get_tid is identical to runtskid returned by tk_ref_sys.

Comments

Click here to Post a Comment