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.

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

tk del mbx<br />

Delete Mailbox<br />

[C Language Interface]<br />

ER ercd = tk_del_mbx ( ID mbxid ) ;<br />

[Parameters]<br />

ID mbxid Mailbox ID<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

Invalid ID number (mbxid is invalid or cannot be used)<br />

Object does not exist (the mailbox designated in mbxid does not exist)<br />

[Description]<br />

Deletes the mailbox designated in mbxid.<br />

Issuing this system call releases the mailbox ID and control block memory space, etc., associated with<br />

the mailbox.<br />

This system call completes normally even if there are tasks waiting for messages in the deleted mailbox,<br />

but error code E DLT is returned to each of the tasks in WAIT state. Even if there are messages still in<br />

the deleted mailbox, the mailbox is deleted without returning an error code.<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!