sem_poll
sem_poll
Poll a semaphore.
Signature
Status sem_poll(
Capref sem )
Arguments
- sem - A
capref
specifying a capability for the semaphore to be polled.
Semantics
A call to sem_poll is essentially a non-blocking form of
sem_wait.
If the count of the semaphore sem is positive, then sem_poll
behaves exactly like sem_wait in that the count is decremented and
operation returns successfully. If the count is zero or negative,
sem_poll will fail unlike sem_wait.
Status
See Also
Capref
sem_wait