5#include <kinc/backend/semaphore.h>
18 kinc_semaphore_impl_t impl;
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC void kinc_semaphore_release(kinc_semaphore_t *semaphore, int count)
Increases the current count of the semaphore, therefore allowing more acquires to succeed.
KINC_FUNC void kinc_semaphore_acquire(kinc_semaphore_t *semaphore)
Decreases the count of the semaphore by one. Blocks until it is possible to decrease the count if it ...
KINC_FUNC void kinc_semaphore_destroy(kinc_semaphore_t *semaphore)
Destroys a semaphore.
KINC_FUNC void kinc_semaphore_init(kinc_semaphore_t *semaphore, int current, int max)
Initializes a semaphore.
KINC_FUNC bool kinc_semaphore_try_to_acquire(kinc_semaphore_t *semaphore, double timeout)
Attempts to decrease the count of the semaphore by one.
Definition semaphore.h:17