INtime SDK Help
knReleaseRtSemaphore
INtime SDK v7.1 > About INtime > INtime Kernel > Semaphores > knReleaseRtSemaphore

Releases a single unit to a specified semaphore. If threads are waiting at the semaphore, the thread at the head of the queue is awakened and given the unit.

Warning: If this function is invoked on a semaphore that contains the maximum of 65,535 units, the number of units in the semaphore is not incremented, and the results will be unpredictable.

Note:   This is a signaling call; call knStopRtScheduler in interrupt handlers before using this call.
VOID knReleaseRtSemaphore(
    KNHANDLE hSemaphore    // handle for low-level semaphore
);

Parameters

hSemaphore
KNHANDLE for a low-level semaphore object.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also

Semaphore system calls, knStopRtScheduler