![]() |
![]() |
![]() |
![]() |
<GMainLoop>
The GMainLoop
struct is an opaque data type
representing the main event loop of a GLib or GTK+ application.
(define-values (%return) (main-loop:get-context self))
Returns the GMainContext of loop
.
(define-values (%return) (main-loop:is-running? self))
Checks to see if the main loop is currently being run via g_main_loop_run()
.
(define-values () (main-loop:quit self))
Stops a GMainLoop from running. Any calls to g_main_loop_run()
for the loop will return.
Note that sources that have already been dispatched when
g_main_loop_quit()
is called will still be executed.
(define-values (%return) (main-loop:ref self))
Increases the reference count on a GMainLoop object by one.
(define-values () (main-loop:run self))
Runs a main loop until g_main_loop_quit()
is called on the loop.
If this is called for the thread of the loop's GMainContext,
it will process events from the loop, otherwise it will
simply wait.