INtime SDK Help
WaitForRtInterrupt
INtime SDK v7 > About INtime > INtime Kernel > Interrupts > WaitForRtInterrupt

Used by an interrupt thread to signal its readiness to service an interrupt. It blocks for the given number of to high-level ticks.

BOOLEAN WaitForRtInterrupt(
    WORD wLevel,
    DWORD dwMilliseconds
);

Parameters

wLevel
Encoded interrupt level which this interrupt thread services.
dwMilliseconds
The time period for which the calling thread will wait.
NO_WAIT The thread does not wait.
WAIT_FOREVER The thread waits for its request to be fully satisfied.
1-655349 Calling thread goes to sleep for this many milliseconds, after which it awakes.

Note: The kernel converts milliseconds to high-level ticks.

Remarks

Interrupt threads use WaitForRtInterrupt to signal readiness to wait a specified amount of time to service an interrupt. If the time limit expires before an interrupt occurs, the interrupt thread resumes without servicing an interrupt.

Return Values

TRUE
Success
FALSE
To determine the status, call GetLastRtError

Status

E_OK 0x0000
No exceptional conditions occurred.
E_TIME 0x0001
No interrupt was available during the waiting period specified in dwMilliseconds.
E_CONTEXT 0x0005
The calling thread is not the interrupt thread for the given level.
E_PARAM 0x8004
wLevel or dwMilliseconds contains an invalid value.

Requirements

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