Having said this, if you have a simple simulation program written
based on GTK+ it's reasonable to engage one main loop for windowing
and the other for simulation processing which results are shown in a
window. Am I right? But what about context? Should it be the one
main or is it better to create new one?
Regards
Krzysztof J.
On 05/08/2016 03:36 PM, Paul Davis
wrote:
Also, worth differentiating between 1 main loop per
thread + multiple threads, and multiple recursive main loops
per thread.
Modal dialogs involve a recursive main loop, but it runs in
the same thread as the normal main loop does (since it runs
"inside" the "real" main loop).
An application like Ardour runs N main loops in N threads, with
each thread dealing with a different type of event source. We do
not multiplex the event sources into the normal main loop,
because we do not want the GUI behaviour potentially interferred
with by the demands of these other UI control systems. Not many
applications require this design.
|
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list