-
pol_sem
ipol_sem
-
Acquire semaphore resource (polling).
ER pol_sem (ID semid);
ER isem_sem (ID semid);
|
|
|
|
ID semid;
|
ID number of the semaphore.
|
This service call acquires a resource from the semaphore specified by parameter
semid (subtracts 1 from the semaphore counter).
If a resource could not be acquired from the target semaphore (semaphore counter is set to 0) when this service call is issued, the counter manipulation processing is not performed but "E_TMOUT" is returned.
|
|
|
|
|
|
|
|
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
Note When the ipol_sem is issued from task or the pol_sem is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.
|
|
|
- The semaphore specified by semid does not exist.
|
|
|
|