-
del_sem
-
ER del_sem (ID semid);
|
|
|
|
ID semid;
|
ID number of the semaphore.
|
This service call can be called from tasks that belong to
Trusted Domain.
This service call deletes the semaphore indicated by
semid.
When there are waiting tasks for the target semaphore by using
wai_sem or
twai_sem, this service call cancels the WAITING state of the tasks and returns E_DLT as a return value of the
wai_sem or
twai_sem.
|
|
|
|
|
|
|
|
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued from non-task.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
|
|
|
- Stack pointer points out of user stack for invoking task.
|
|
|
- The invoking task does not belong to trusted domain.
|
|
|
- The semaphore specified by semid does not exist.
|