semRelease()

The function semRelease() increases the number of the available resources in the given semaphore.

Synopsis

int semRelease(string id, int n = 1);

Parameters

Parameter Meaning
id The name used to address the semaphore. CAUTION: The semaphores are detected manager globally.
n Number of resources to release.

Errors

Missing/incorrect arguments

Description

The function increases the number of the available resources in the given semaphore.

An example can be found here: semAcquire()

Assignment

Thread programming

Availability

UI, CTRL

Return value

semAcquire(), semAvailable()