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.

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

The message header is T MSG (if TA MFIFO attribute is designated) or T MSG PRI (if TA MPRI). In either<br />

case the message header has a fixed size, which can be obtained by sizeof (T MSG) or sizeof(T MSG PRI).<br />

The actual message must be put in the area after the header. There is no limit on message size, which<br />

may be variable-length.<br />

[Additional Notes]<br />

Messages are sent by tk snd mbx regardless of the status of the receiving tasks. In other words, message<br />

sending is asynchronous. What waits in the queue is not the task itself, but the sent message. So while<br />

there are queues of waiting messages and receiving tasks, the sending task does not go to WAIT state.<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!