Found 9 other functions taking a
semaphore
argument:
Initialise a semaphore structure
Release a permit on a semaphore Increases the number of permits by one (unless the number of permits is already at the maximum). A blocked `sem_acquire` will be released if the number of permits is increased.
Wait to acquire a permit from a semaphore until a specific time This function will block and wait if no permits are available, until the specified timeout time. If the timeout is reached the function will return false, otherwise it will return true.
Acquire a permit from the semaphore This function will block and wait if no permits are available.
Acquire a permit from a semaphore, with timeout This function will block and wait if no permits are available, until the defined timeout has been reached. If the timeout is reached the function will return false, otherwise it will return true.
Reset semaphore to a specific number of available permits Reset value should be from 0 to the max_permits specified in the init function
Acquire a permit from a semaphore, with timeout This function will block and wait if no permits are available, until the defined timeout has been reached. If the timeout is reached the function will return false, otherwise it will return true.
Return number of available permits on the semaphore
Attempt to acquire a permit from a semaphore without blocking This function will return false without blocking if no permits are available, otherwise it will acquire a permit and return true.