Use a sequence diagram
to show a dispatched timeout.
About this task
The
following sequence diagram shows a
dispatched timeout.
To queue the timeout event:
Procedure
- The timeTickCbk method
(private) is called to increment m_Time, the accumulated
or current time.
- The timeTickCbk method
calls post (private) to get the
next scheduled timeout request from the heap, trim the heap, and move
the timeout to the matured list.
- The getDestination method
returns the reactive destination.
- The getThread method
returns the reactive class thread.
- The post method calls the queue method
to queue the timeout request to the relevant thread as an event.
Results
After the timeout
event reaches
the head of the event queue, the takeEvent method
is used by the event loop (within the thread) to request that the
reactive object process the event.