I want make progressbar pulsing in the infinitive loop until I’ll stop it.
What is better - timeout signals, threads?
I want make progressbar pulsing in the infinitive loop until I’ll stop it.
What is better - timeout signals, threads?
Hi,
It really depends on your usecase
If you already have a thread doing some long processing, it can be interesting to trigger the pulse based on the thread activity, that’s a way to visually check if the thread is (temporarily?) blocked or preempted, you’ll see the animation stop in that case.
(of course, don’t call gtk APIs directly from the thread, but schedule an idle callback instead)
If you can’t or don’t need to check the thread activity, then a simple timeout will be enough.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.