I was looking into the documentation of GMainContext
API. I can call g_main_context_default()
to get the global default main context without having to create it first in my program. I can also create a GMainLoop
using the global default main context as follow:
GMainLoop *loop = g_main_loop_new(NULL, FALSE);
The global default main context seems to be created implicitly at some point in a program. I can’t seem to find anywhere in the The Main Event Loop doc or the MainContext API that specify at what point in a program the global GMainContext is created and by what what function?