Dispatching a timeout

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

  1. The timeTickCbk method (private) is called to increment m_Time, the accumulated or current time.
  2. 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.
  3. The getDestination method returns the reactive destination.
  4. The getThread method returns the reactive class thread.
  5. 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.


Feedback