Luv.SemaphoreSemaphores.
See Semaphores in libuv.
Binds uv_sem_t.
Allocates and initializes a semaphore.
Binds uv_sem_init. See sem_init(3p).
val destroy : t -> unitCleans up a semaphore.
Binds uv_sem_destroy. See sem_destroy(3p).
val post : t -> unitIncrements a semaphore.
Binds uv_sem_post. See sem_post(3p).
val wait : t -> unitDecrements a semaphore.
Binds uv_sem_wait. See sem_wait(3p).
Tries to decrement a semaphore without blocking.
Binds uv_sem_trywait. See sem_trywait(3p).