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 111<br />

tk del mtx<br />

Delete Mutex<br />

[C Language Interface]<br />

ER ercd = tk_del_mtx ( ID mtxid ) ;<br />

[Parameters]<br />

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

Object does not exist (the mutex designated in mtxid does not exist)<br />

[Description]<br />

Deletes the mutex designated in mtxid.<br />

Issuing this system call releases the mutex ID and control block memory space allocated to the mutex.<br />

This system call completes normally even if there are tasks waiting to lock the deleted mutex, but error<br />

code E DLT is returned to each of the tasks in WAIT state.<br />

When a mutex is deleted, a task locking the mutex will have fewer locked mutexes. If the mutex was a<br />

priority inheritance mutex or priority ceiling mutex, it is possible that the priority of the task locking<br />

it will change as a result of its deletion.<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!