WebKit

Update of "Running the Main Loop"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 0daf9b12759e230d45eb73d08f504301b9850383
Page Name:Running the Main Loop
Date: 2011-09-24 19:26:51
Original User: murphy
Parent: 6648c15186377adc13d39d941aad12da8e8fa900
Content

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.