Base class: Object

Lua
C++
Edit

Semaphore

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
Copyright © 2024 Ultra Software.
All rights reserved.