The start method starts the event processing of the active class (by default, the OMMainThread singleton). The doFork parameter determines whether the current thread is the default event dispatching thread or a new, separate thread. If doFork is FALSE, OXF::start will not return, unless the default active class is destroyed.
OXF::start does not return in the generated application (this can be controlled via a Rational® Rhapsody® property). Even if all statecharts terminate, it still runs. This is because the framework was specifically written for embedded applications, which generally do not end. Use Ctrl+C to kill the application.
Public
static void start(int doFork = FALSE);
doFork
Determines whether the current thread (the caller of init) is the default event dispatching thread or a separate thread. If doFork is TRUE, the control returns to the caller; otherwise, control remains in OXF::start for the lifetime of the application.
The syntax
is as follows:
int doFork = FALSE
This parameter is useful in environments such as MS Windows, where the root thread has its own "agenda" (for example, GUI processing).