execute

This method is the thread main loop function. By default, this protected function processes the events in the queue of the thread. See Using the execute methodfor details.

Visibility
Public
Signature
virtual OMReactive* execute();
Returns

This method returns OMReactive, which specifies the reactive class that "owns" the thread (active).

Note: The IBM® Rational® Rhapsody® framework does not provide any default exception handler. One reason for this is that you can configure BSPs to exclude exception handling, which impacts footprint and performance. However, this does not prevent you from using your own C++ exception handler.

You might prefer to put a general fallback handler in the main loop of OMThread in the execute method. You can also add exception handling as a conditional code segment that is disabled by default.

You can override execute to specialize different thread behaviors. For example, you can create an active class that is not reactive.


Feedback