30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.9. SYSTEM MANAGEMENT FUNCTIONS 193<br />

tk get tid<br />

Get Task Identifier<br />

[C Language Interface]<br />

ID tskid = tk_get_tid ( ) ;<br />

[Parameters]<br />

None<br />

[Return Parameters]<br />

ID tskid ID of the task in RUN state<br />

[Error Codes]<br />

None<br />

[Description]<br />

Gets the ID number of the task currently in RUN state. Unless the task-independent portion is executing,<br />

the current RUN state task will be the invoking task.<br />

If there is no task currently in RUN state, 0 is returned.<br />

[Additional Notes]<br />

The task ID returned by tk get tid is identical to runtskid returned by tk ref sys.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!