Requests a message from a specific low-level mailbox. If a high-priority message is present, that is the message returned, otherwise the message at the head of the queue is returned. If no message is present, the calling thread is put to sleep for the number of system timer ticks specified.
BOOLEAN knWaitForRtData( KNHANDLE hMailbox, LPVOID lpData, LPDWORD lpcbBytesReceived, DWORD dwKernelTicks );
hMailbox
lpData
lpcbBytesReceived
dwKernelTicks
TRUE
FALSE
E_OK
E_KN_TIME_OUT
E_KN_NONEXIST
Note:
- Delete mailboxes only after a thread begins to wait. This call cannot return control to the calling thread if its corresponding mailbox is already deleted.
- This is a blocking call. Do not use it in an interrupt handler.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |