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.

58 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

Target Task State tk rel tsk ercd Parameter Processing<br />

Run state (RUN, READY) E OBJ No operation<br />

(not for invoking task)<br />

RUN state E OBJ No operation<br />

(for invoking task)<br />

WAIT state E OK Wait released ∗<br />

DORMANT state E OBJ No operation<br />

NON-EXISTENT state E NOEXS No operation<br />

∗ Error code E RLWAI is returned to the target task. The target task is guaranteed to be<br />

released from its wait state without any resource allocation (without the wait release conditions<br />

being met).<br />

Table 4.3: Task States and Results of tk rel wai Execution<br />

• Seen from the task in WAIT state, release of the WAIT state by tk wup tsk returns a Normal<br />

completion (E OK), whereas release by tk rel wai returns an error code (E RLWAI).<br />

• Wakeup requests by tk wup tsk are queued if tk slp tsk has not yet been executed. If tk rel wai<br />

is issued for a task not in WAIT state, error code E OBJ is returned.<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!