|
||
class MBeating;
Heartbeat timer call-back handling interface.
The interface provides a pair of functions to handle the beating and synchronisation of heartbeat timers.
The CHeartbeat
active object class uses an object implementing the MBeating interface.
Defined in MBeating
:
Beat()
Handles a regular heartbeat timer event.Synchronize()
Synchronises the heartbeat timer with system clock.CHeartbeat::Start(TTimerLockSpec,MBeating *)
Starts generating heartbeat events. The event results in calls to the Beat() and...virtual void Beat()=0;
Handles a regular heartbeat timer event.
This type of event is one where the timer completes in synchronisation with the system clock.
virtual void Synchronize()=0;
Synchronises the heartbeat timer with system clock.
This function handles a heartbeat timer event where the timer completes out of synchronisation with the system clock, (i.e. one or more heartbeats have been missed).