The gen method is an overloaded public method used by a sender object to send an event to a receiver object. gen first checks to see whether the receiver object is under destruction.
In uninstrumented code, the call gen(OMEvent) is always sufficient. The call is also sufficient in instrumented code when you include the notifyContextSwitch method.
Multi-thread instrumented applications should use the
call
gen(OMEvent* event, void* sender).
If the sender is a GUI element, use the syntax gen(theEvent,
OMGUI). OMGui is defined in the file aoxf.h.
Public
virtual OMBoolean gen (OMEvent *event,
OMBoolean genFromISR = FALSE);
virtual OMBoolean gen (OMEvent *event, void * sender);
void gen (AOMEvent *theEvent, void * sender)
event
Specifies a pointer to the event to be sent to the reactive object.
genFromISR
Indicates whether the event is from an operating system interrupt service request (ISR). If it is, it requires special treatment.
event
Specifies the event to send
sender
Specifies the object sending the event
theEvent
Specifies the event to send
sender
Specifies the object sending the event
The method returns one of the following Boolean values: