gen

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.

Visibility
Public
Signatures
virtual OMBoolean gen (OMEvent *event,
   OMBoolean genFromISR = FALSE);

virtual OMBoolean gen (OMEvent *event, void * sender);

void gen (AOMEvent *theEvent, void * sender)
Parameters for signature 1
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.

Parameters for signature 2
event

Specifies the event to send

sender

Specifies the object sending the event

Parameters for signature 3
theEvent

Specifies the event to send

sender

Specifies the object sending the event

Returns

The method returns one of the following Boolean values:

Notes

Feedback