Back to Darwin Xnu

Semaphore Signal All

osfmk/man/semaphore_signal_all.html

latest820 B
Original Source

semaphore_signal_all


Function - Wake up all threads blocked on a semaphore.

SYNOPSIS

**kern\_return\_t semaphore\_signal\_all**** (semaphore\_t **semaphore** );**

PARAMETERS

semaphore[in send right] The port naming the semaphore to be signalled.

DESCRIPTION

The semaphore_signal_all function wakes up all of the threads blocked on the semaphore. The semaphore count is reset to zero.

RETURN VALUES

KERN_INVALID_ARGUMENT The specified semaphore is invalid.

KERN_TERMINATED The specified semaphore has been destroyed.

KERN_SUCCESS The semaphore has been signalled.

Functions: semaphore_create, semaphore_destroy, semaphore_signal,