Threads/GUI syncronization


#1

I'm using threads to do some time consuming tasks. This way GUI stays responsive and everything is smooth.

I'm trying to find best way to signal GUI from my thread to do something. Progress bar update, status indicators and other simple things. Having timerCallback on my GUI and checking variables does not seem like a good idea.

Any hints how to do this? Is there a way po post a message to GUI thread and process it there?


#2

Hi Kroko - check out this thread: http://www.juce.com/forum/topic/whats-best-practice-gui-change-notification


#3

Thank you. This is exactly what I needed.

Too bad that ChangeBroadcaster does not have a parameter. In my case it would be most elegant solution.