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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software