SEMAPHORE_V
Purpose
semaphore_v issues a V on a semaphore.
Synopsis
#include <types.h>
#include <stub.h>
int semaphore_v(Capability
*semaphore);
Parameters
-
semaphore: a capability for the
semaphore to apply V.
Description
semaphore_v issues a V operation on
the semaphore designated by semaphore. The V operation increments
the semaphore's value, If there are thread block on the specified semaphore,
the first blocked is released.
Return Values
On success, semaphore_v returns 0 and
semaphore's value is incremented.
On fail, semaphore_v returns a negative
value indicating one of the following errors:
See Also
semaphore_create,
semaphore_destroy, semaphore_status,
semaphore_p