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.

See Also

SyncManager.CreateSemaphore