int sem_post(sem_t *sem);
When this operation results in a positive semaphore value, no threads were blocked waiting for the semaphore to be unlocked; the semaphore value is simply incremented.
When this operation results in a semaphore value of zero, one of the threads
waiting for the semaphore is allowed to return successfully from its
invocation of the
UNIX 03. Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)
On Windows, the waiting thread that is allowed to return is chosen by
On UNIX platforms, this thread is chosen differently,
If the _POSIX_PRIORITY_SCHEDULING symbol is defined,
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.