WebKit

Running the Main Loop
Login

Running the Main Loop

  (current-main-loop-level) => INTEGER
Determines the nesting level of currently running main loops.
  (main-loop [YIELD-INTERVAL] [TIMEOUT]) => BOOLEAN
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.