Question & Answer
Question
Would changing the call OXF::start() to OXF::start(true) in Rhapsody main() affect the program?
Answer
Yes, it does affect the program. It specifies whether the OMMainThread singleton event loop should run on the application main thread (OXF::start()) or in a separate thread (OXF::start(true)).
For example, many applications require a GUI with its own library. The Rhapsody library has an event queue and a main thread, and the GUI usually has its own event queue.
In order for both event queues to work together, you can start the main thread with OXF::start(true). This starts the main thread of the GUI and forks a new thread for the Rhapsody library.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21393822