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.

4.5. EXTENDED SYNCHRONIZATION AND COMMUNICATION FUNCTIONS 131<br />

tk del por<br />

Delete Port for Rendezvous<br />

[C Language Interface]<br />

ER ercd = tk_del_por ( ID porid ) ;<br />

[Parameters]<br />

ID porid Rendezvous port 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 (porid is invalid or cannot be used)<br />

Object does not exist (the rendezvous port designated in porid does not exist)<br />

[Description]<br />

Deletes the rendezvous port designated in porid.<br />

Issuing this system call releases the ID number and control block space allocated to the rendezvous port.<br />

This system call completes normally even if there are tasks waiting on rendezvous acceptance (tk acp por)<br />

or rendezvous port call (tk cal por) at the designated rendezvous port, but error code E DLT is returned<br />

to the tasks in WAIT state.<br />

Deletion of a rendezvous port by tk del por does not affect tasks for which rendezvous is already<br />

established. In this case, nothing is reported to the task accepting the rendezvous (not in WAIT state),<br />

and the state of the task calling the rendezvous (WAIT for rendezvous completion) remains unchanged.<br />

When the task accepting the rendezvous issues tk rpl rdv, that system call will execute normally even<br />

if the port on which the rendezvous was established has been deleted.<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!