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 );
wLevel
dwMilliseconds
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. |
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.
TRUE
FALSE
E_OK 0x0000
E_TIME 0x0001
dwMilliseconds
.
E_CONTEXT 0x0005
E_PARAM 0x8004
dwMilliseconds
contains an invalid value. Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |