AMX 86 Procedures
K
A
DAK
227
ajevnt ajevnt
Purpose Get the Saved Event Flags
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup unsigned int value;
.
.
value = ajevnt();
AX
Where value is the state of the 16 event flags at the time the calling task most
recently completed a call to ajevwat.
Results Interrupts are untouched.
A task can wait for events in an event group by calling ajevwat. Ajevnt
is used to retrieve the state of the event flags at the time the ajevwat call
completed.
Ajevwat saves a copy of the current state of all 16 event flags in the
calling task's Task Control Block at the moment the calling task's event
match occurs or its wait interval expires. Subsequent calls by the task to
ajevnt will retrieve these saved event flags.
Ajevnt is paired with a task's most recent ajevwat call. Ajevwat only
updates the saved event flag copy if an event match or timeout occurs. If
ajevwat has never updated the task's saved event flag copy, then the
value returned by ajevnt will be undefined. Ajevnt will continue to
return the same value until the task makes another call to ajevwat which
results in an update of the saved event flag copy.
A task can only retrieve its own saved event flags. A task cannot retrieve
the saved event flags of another task.
See Also ajevwat, ajevrd