mainLoop package:gi-glib
The GMainLoop struct is an opaque data type representing the
main event loop of a GLib or GTK application.
Memory-managed wrapper type.
Checks to see if the main loop is currently being run via
mainLoopRun.
Stops a
MainLoop from running. Any calls to
mainLoopRun
for the loop will return.
Note that sources that have already been dispatched when
mainLoopQuit is called will still be executed.
Increases the reference count on a
MainLoop object by one.
Runs a main loop until
mainLoopQuit is called on the loop. If
this is called for the thread of the loop's
MainContext, it
will process events from the loop, otherwise it will simply wait.
Decreases the reference count on a
MainLoop object by one. If
the result is zero, free the loop and free all associated memory.