Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.
|Page Name:||Running the Main Loop|
Running the Main Loop
(current-main-loop-level) => INTEGERDetermines the nesting level of currently running main loops.
(main-loop [YIELD-INTERVAL] [TIMEOUT]) => BOOLEANEnters 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!) => VOIDCauses the innermost running Gtk+ event loop to terminate.