Running the Main Loop

Running the Main Loop

  (current-main-loop-level) => INTEGER
Determines the nesting level of currently running main loops.
Enters the Gtk+ main loop. Other CHICKEN threads are allowed to run at least every YIELD-INTERVAL seconds (default 0.5).

The main loop is terminated automatically if no more top level windows are open.

The TIMEOUT can be #f (the default), a number of seconds or a SRFI-18 time object. When the timeout is reached, the main loop terminates and returns #f. Otherwise the procedure always returns #t.

  (main-loop-quit!) => VOID
Causes the innermost running Gtk+ event loop to terminate.