AMX 86 Procedures
K
A
DAK
231
ajevwat ajevwat
Purpose Wait for Event(s) in an Event Group
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup AMXID group;
unsigned int mask;
unsigned int value;
int match;
long timeout;
int status;
.
.
status = ajevwat(group, mask, value, match, timeout);
AX see note
Where group is the group id of an event group acquired with a call to ajevcre.
mask is a 16-bit mask identifying the event flags of interest in the group.
value is a 16-bit value which specifies the states of interest for each of the
event flags selected by the mask. The states of flags not specified by
the mask can be either set or clear.
match defines the event match requirements:
0 Any selected flag in its required state is considered the event of
interest.
<> 0 All selected flags must be in the state specified by value to be
considered the event of interest.
timeout is the maximum interval measured in AMX system ticks which
the caller is prepared to wait for an event match. Timeout must be
positive. If timeout = 0, the caller will wait forever for the specified
event match.