int32 WaitForMsg (Item msgPortItem, Item* msgItemPtr, Message**
pMsgPtr, void** pMsgDataPtr, Item waitMsgItem)
WaitForMsg()
is normally used to wait for reply messages from
threads to which a message has already been sent.
PollForMsg()
calls WaitPort()
to wait for and
retrieve the message and then LookupItem()
to find the
pointer to the message. WaitForMsg()
does not return until it
receives a message from the specified message port.
msgPortItem
msgItemPtr
NULL
, no pointer is assigned.
pMsgPtr
NULL
, no
pointer is assigned.
pMsgDataPtr
NULL
, no pointer is assigned.
waitMsgItem
WaitForMsg()
accepts any message from the specified message
port.
LookupItem()
failed) for the item of the message port
WaitPort()
failed
LookupItem()
or
WaitPort()
.