Base class: Object
This class allows multithreaded applications to perform blocking operations. A semaphore can be signaled by one thread and waited on by another thread, for thread synchronization.
A semaphore will provide faster threading performance than frequent mutex locks.
Property | Type | Description |
---|---|---|
Signal | Method | sets the semaphore to the signaled state and releases any blocked threads waiting for it |
Wait | Method | waits for the semaphore to reach the signaled state, and then resets it to the unsignaled state |
CreateSemaphore | Function | creates a new semaphore object |
Sets the semaphore to the signaled state and releases any blocked threads waiting for it.
Waits for the semaphore to reach the signaled state, and then resets it to the unsignaled state.
Creates a new semaphore object.