LU 6.2 API Application Programmer's Reference Guide (30294-90008)

126 Chapter5
Intrinsic Descriptions
MCWait
MCWait
Waits for information to arrive for any of a list of conversations.
Syntax
IA16 I16V I16
MCWait(
ResourceList
,
NumResources
,
ResourcePosted
,
I32 I16
Status
, [
PostedType
]);
Parameters
ResourceList
Required; 16-bit integer array; input. This array is a
list of
ResourceIDs
for current conversations. It
specifies the conversations that MCWait will monitor
for incoming information. At least one of the
conversations specified must have posting active; that
is, MCPostOnRcpt must have been called. MCWait can
monitor only conversations for which posting is active.
On MPE V, up to 8
ResourceIDs
can be listed in the
ResourceList
, because MPE V supports a maximum of
8 active conversations.
On MPE XL, up to 256
ResourceIDs
can be listed in
the
ResourceList
, because MPE XL supports a
maximum of 256 active conversations.
NumResources
Required; 16-bit signed integer by value; input. This
parameter specifies the number of
ResourceIDs
listed
in the
ResourceList
array. On MPE V,
NumResources
must be from 1 through 8. On MPE XL,
NumResources
must be from 1 through 256.
ResourcePosted
Required; 16-bit signed integer; output. When the
Status
parameter returns 0, the
ResourcePosted
parameter contains the
ResourceID
of the
conversation for which information has arrived.