Professional Documents
Culture Documents
Exitingtimerservice Pseudocode
Exitingtimerservice Pseudocode
InitExitingTimerService
Takes a priority number, returns True.
Set MyPriority
End of InitExitingTimerService
PostExitingTimerService
Takes an ES_Event_t, returns boolean outcome of ES_PostToService
End of PostExitingTimerService
RunExitingTimerService
The EventType field of ThisEvent will be one of: START_EXITING_TIMER,
ES_TIMEOUT
ThisEvent is START_EXITING_TIMER
Start EXITING_TIMER for three seconds
ThisEvent is ES_TIMEOUT
Set NewEvent to STOP_EXITING
Post to MasterSM
Return ES_NO_EVENT
End of RunExitingTimerService