RtGetCountFastSemaphore

RtGetCountFastSemaphore returns the number of threads waiting on this fast semaphore. This information is useful when preparing for a manual release of the fast semaphore.

Syntax

BOOLEAN RtGetCountFastSemaphore(
    PRTFastSEMAPHORE pSemaphore, 
    PULONG pCount
)

Parameters

pSemaphore

A pointer to a user allocated RTFAST_SEMAPHORE structure.

pCount

Current count of fast semaphore waiters.

Return Values

TRUE if the function succeeds, FALSE if the function fails

To get any extended error information, call GetLastError().

Remarks

A fast semaphore provides signaling functionality without relying on the RTSS thread library. The result is shorter latency as use of this fast semaphore does not require the waking up of threads.

Requirements

Header Rtapi.h
Library Rtx_Rtss.lib

See Also

FastSemaphore

RtInitializeFastSemaphore

RtAcquireFastSemaphore

RtReleaseFastSemaphore

RtReleaseAllFastSemaphore

IntervalZero.com | Support | Give Feedback