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

Copy
BOOL RtGetCountFastSemaphore(
    CONST PRTFAST_SEMAPHORE pSemaphore, 
    PULONG pCount
)

Parameters

pSemaphore

A pointer to a user allocated PRTFAST_SEMAPHORE structure.

pCount

Current count of fast semaphore waiters.

Return Value

If the function succeeds, it returns TRUE. If the function fails, it returns FALSE.

To get any extended error information, call GetLastError.

Remarks

A fast semaphore provides signaling functionality without relying on the process thread library. This fast semaphore does not require threads to wake up, resulting in shorter latency.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

RtssApi.h rtkrnl.lib

See Also