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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Only positive values can be set in tmout. The time base for tmout (time unit) is the same as that for<br />

system time (= 1 ms).<br />

When TMO POL = 0 is set in tmout, this means 0 was designated as the timeout value, and E TMOUT is<br />

returned without entering WAIT state if there is not enough buffer space.<br />

When TMO FEVR = (−1) is set in tmout, this means infinity was designated as the timeout value, and<br />

the task continues to wait for buffer space to become available, without timing out. A message of size<br />

0 cannot be sent. When msgsz ≤ 0 is designated, error code E PAR is returned.<br />

When this system call is invoked from a task-independent portion or in dispatch disabled state, error<br />

code E CTX is returned; but in the case of tmout = TMO POL, there may be implementations where<br />

execution from a task-independent portion or in dispatch disabled state is possible.<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!