Calling ListBox::updateContent() from another thread



I’m quite confused about this issue:
The updateContent() description says "Be careful not to call it from a different thread, though, as it’s not thread-safe."
I’m using the MessageManagerLock but I guess this has nothing to do with that warning.

Maybe the MessageManager::callFunctionOnMessageThread is the solution for me?



If you use a messagemanagerlock, that’s probably ok. But my recommendation would be to use e.g. an AsyncUpdater to trigger a refresh if you need one.