SignalSemaphore()

Syntax

SignalSemaphore(Semaphore)
Description
Increases the internal count of the semaphore by one, releasing a waiting thread if there is one.

Parameters

Semaphore The semaphore to signal.

Return value

None.

Remarks

The semaphore count is limited to a signed 32-bit value, so a maximum of 2147483647 SignalSemaphore() calls can be made without being balanced by WaitSemaphore() calls in between.

See CreateSemaphore() for a code example.

Supported OS

All

<- ResumeThread() - Thread Index - ThreadID() ->