Running multiple concurrent GMainLoops
Are users of GLib allowed to run multiple GMainLoop instances concurrently in multiple threads, with each thread running its own instance? I've found "yes" and "no" answers all over the place. I realize that this question has been asked before in this very forum (December 2011) . However, I am able to run two GMainLoop instances at the same time without apparent issue. My test code is very simple: Create a GMainLoop in main() Create a timeout source for the default context and the main loop using g_timeout_add Create a GThread in main() Run the main loop using g_main_loop_run [THREAD CONTEXT]: