I have a system that loads a configuration file, then immediately performs some actions based on values that get updated by the configuration file load.
The problem is, that the listeners to these values don’t get called till the event loop runs.
I’ve kludged a solution to load the config file, then set a timer to act on it, but this seems kludgy and might break under an unusual situation.
Is there a way to programmatically cause the value listeners to be serviced right away?
Edit: I found the MessageManager::getInstance()->runDispatchLoopUntil (50); statement. This seems to work, but is there a way to know all the messages have been delivered?