I’m using Juce for a project.
There is a thread into I receive information. According to this information I must change some graphics stuff.
Until now, I used MessageManagerLock but in the case of a window name change the program blocks in a subfunction of setName.
simplified example code:
in a subfunction of run thread method
MessageManagerLock mml (Thread::getCurrentThread()); if (! mml.lockWasGained()) return; // another thread is trying to kill us! mainWindow->setName('Hello!');
When I comment the MessageManagerLock I have two jassert
(juce_component.cpp l183 and l1633) but all is OK. And I know it’s not threadsafe…
So is there a bug?
thank you for your answers
(excuse me for my English, I’m French! :lol: )