Generating and queuing an event

About this task

The following sequence diagram shows the generation and queuing of an event.

The sequence to generate and queue an event is as follows:

Procedure

  1. A client class creates the event.
  2. The client class calls the gen method of the reactive class that consumes the event.
  3. The setDestination method sets the destination attribute to the specified OMReactive instance.
  4. The queue method asks the thread to queue the event by calling the put method (defined in omthread.cpp).
  5. The put method inserts the event into the event queue for the thread.

Feedback