mainLoop -package:GLUT
main event loop, and events
A main event loop abstraction.
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.
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.
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.
Code to run after the listening socket is ready but before entering
the main event loop. Useful for signaling to tests that they can start
running, or to drop permissions after binding to a restricted port.
Default: do nothing.
Since 2.1.0
Code to run after the listening socket is ready but before entering
the main event loop. Useful for signaling to tests that they can start
running, or to drop permissions after binding to a restricted port.
Default: do nothing.
Since 1.3.6
Deprecated: (Since version 2.36)Use
g_main_context_invoke().
Deprecated: (Since version 2.36)Use
g_main_context_invoke().