new

fun new(context: MainContext? = null, isRunning: Boolean): MainLoop

Creates a new #GMainLoop structure.

Return

a new #GMainLoop.

Parameters

context

a #GMainContext (if null, the default context will be used).

isRunning

set to true to indicate that the loop is running. This is not very important since calling g_main_loop_run() will set this to true anyway.