Comm Driver Test Code.
More...
Comm Driver Test Code.
Scheduler of Events.
Old communications test code.
- See Also
- http://www.amuletsandarmor.com/AALicense.txt
In support of scripts with delayed timing, events are put on a scheduler.
- See Also
- http://www.amuletsandarmor.com/AALicense.txt
IScheduleInsertSortEvent adds a new event to the event list and tries to find a position where the event is in order from earliest to latest.
- Parameters
-
p_newEvent | – Event to add |
when | – When the event is to occur |
ScheduleAddEvent adds an event to the schedule list based on the ticker clock. When this event goes off, the handler is called and the passed in data is passed to the handler.
- Parameters
-
when | – Ticker time for event to occur |
handler | – Callback routine for event |
data | – Data to store with event (note that this could be a pointer cast as a 32 bit value). |
ScheduleClearEvents removes all events from the schedule. This is useful when you need to quit processing those events.
ScheduleUpdateEvents looks at the beginning of the schedule list and sees if there is an action it needs to perform. If there is, that action is taken and the appropriate callback routine is called. The event is then discarded and another attempt is made.
- Returns
- Flag that tells if an event occured