Semaphore.GetInfo
- Updated2024-10-09
- 1 minute(s) read
Semaphore.GetInfo
Syntax
Semaphore.GetInfo( numThreadsWaitingToAcquire, currentCount, initialCount, maxCount)
Purpose
Obtains information about the current state of the semaphore.
Parameters
numThreadsWaitingToAcquire As Long
[Out] Returns the number of threads waiting to acquire the semaphore.
currentCount As Long
[Out] Returns the current count for the semaphore.
initialCount As Long
[Out] Returns the value of the initialCount parameter when the SyncManager.CreateSemaphore method creates the object.
maxCount As Long
[Out] Returns the value of the maxCount parameter when the SyncManager.CreateSemaphore method creates the object.