Signal a semaphore.
This will wake up at most one thread waiting on the semaphore. If no threads are waiting, the signal is retained until the next call to PCRSemaphore_Wait.
The semaphore must be a valid PCRSemaphore.
- Parameters
-
| sem | Semaphore to signal. Must not be NULL. |
- Return values
-
| PCRSTATUS_OK | if the semaphore was successfully signaled. |
| PCRSTATUS_ERROR | if the semaphore could not be signaled (e.g., it would cause an internal overflow of the signal count). |