RtReleaseAllFastSemaphore

RtReleaseAllFastSemaphore releases all threads waiting on the fast semaphore. Ensures that all waiting threads enter the ready-to-run state. Ensures that no new threads enter the busy wait state until all current waiters have become runnable.

Syntax

BOOLEAN RtReleaseAllFastSemaphore(
    PRTFAST_SEMPHORE pSemaphore
)

Parameters

pSemaphore

A pointer to a user allocated RTFAST_SEMAPHORE structure.

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 rtapi_w32.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also

FastSemaphore

RtInitializeFastSemaphore

RtGetCountFastSemaphore

RtAcquireFastSemaphore

RtReleaseFastSemaphore

IntervalZero.com | Support | Give Feedback