class NamedSemaphore
package digigun.sys.sync
High-level wrapper for a native named semaphore.
Static methods
staticopen(name:String, initialValue:Int = 1):NamedSemaphore
Opens or creates a named semaphore.
Parameters:
name | Unique system-wide name. |
|---|---|
initialValue | Initial semaphore count. |
Returns:
A NamedSemaphore instance if successful, null otherwise.