Oberon || Library || Module Index || Search Engine || Definition || Module
TYPE Timer = POINTER TO TimerRec; TYPE TimerRec = RECORD (Objects.ObjectRec) END;
CONST invalidTimer = 0; (* timer is no longer valid *) CONST queueLocked = 1; (* the queue is currently locked *) CONST badClock = 2; (* clock is unable to maintain a timer *) CONST errorcodes = 3; TYPE ErrorEvent = POINTER TO ErrorEventRec; TYPE ErrorEventRec = RECORD (Events.EventRec) errorcode: SHORTINT; END; VAR errormsg: ARRAY errorcodes OF Events.Message; VAR error: Events.EventType;
PROCEDURE Add(clock: Clocks.Clock; time: Times.Time; event: Events.Event; VAR timer: Timer); PROCEDURE Remove(timer: Timer); PROCEDURE Schedule(clock: Clocks.Clock; time: Times.Time; event: Events.Event); PROCEDURE NextEvent(clock: Clocks.Clock; VAR time: Times.Time) : BOOLEAN;
NextEvent returns the time of the next event in the queue of timers.
Oberon || Library || Module Index || Search Engine || Definition || Module