CooCox CoOS User's Guide
CooCox CoOS User's Guide
CooCox CoOS User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Note:<br />
None<br />
6.7.2 CoDelSem()<br />
Function Prototype:<br />
StatusType CoDelSem(<br />
Descriptions:<br />
);<br />
OS_EventID id,<br />
U8<br />
opt<br />
Delete the semaphore whose ID was designated.<br />
Parameters:<br />
[in] id<br />
the designated semaphore ID<br />
[in] opt<br />
the ways to delete the designated semaphore :<br />
EVENT_DEL_NO_PEND, delete when the waiting list is<br />
Returns:<br />
E_INVALID_ID,<br />
EVENT_DEL_ANYWAY,<br />
empty<br />
delete unconditionally<br />
the semaphore ID that was incomed is invalid<br />
E_INVALID_PARAMETER, invalid parameters, that is ,the<br />
E_TASK_WAITING,<br />
E_OK,<br />
corresponding control block is empty<br />
the waiting list is not empty<br />
delete successfully<br />
81