Function

dispatch_semaphore_signal

Signals (increments) a semaphore.

Declaration

long dispatch_semaphore_signal(dispatch_semaphore_t dsema);

Parameters

dsema

The counting semaphore. This parameter cannot be NULL.

Return Value

If the previous value was less than zero, this function wakes a process currently waiting.

Discussion

Increment the counting semaphore. If the previous value was less than zero, this function wakes a thread currently waiting in dispatch_semaphore_wait.