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
BOOL RtGetCountFastSemaphore(
[in] CONST PRTFAST_SEMAPHORE pSemaphore,
[out] PULONG pCount
)
Parameters
[in] pSemaphore
A pointer to a user allocated PRTFAST_SEMAPHORE structure.
[out] pCount
Current count of fast semaphore waiters.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
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
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtssApi.h |
Startup.lib |
See Also