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.

4.4. SYNCHRONIZATION AND COMMUNICATION FUNCTIONS 81<br />

tk del sem<br />

Delete Semaphore<br />

[C Language Interface]<br />

ER ercd = tk_del_sem ( ID semid ) ;<br />

[Parameters]<br />

ID semid Semaphore 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 (semid is invalid or cannot be used)<br />

Object does not exist (the semaphore designated in semid does not exist)<br />

[Description]<br />

Deletes the semaphore designated in semid.<br />

The semaphore ID and control block area are released as a result of this system call.<br />

This system call completes normally even if there is a task waiting for condition fulfillment in the<br />

semaphore, but error code E DLT is returned to the task in 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!