IBM Support

Changing the call OXF::start() to OXF::start(true) and the effect on IBM Rational Rhapsody

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":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21393822