semSignal (Function) |
Top Previous Next |
The semSignal() function will perform a traditional SIGNAL operation on the specified semaphore. The semSignal() mechanism will: •If there are threads blocked in the semWait() waiting queue for the semaphore, the first thread will be released to execute. •Otherwise the semaphore value will be incremented by 1.
Also see the function semWait() and the section on thread synchronization for more information.
Input: sem : SEMAPHORE The semaphore to Signal.
Returns: INT
Declaration: FUNCTION semSignal : INT;
Example: INCLUDE rtcu.inc |