Artifact
0daf9b12759e230d45eb73d08f504301b9850383:
Wiki page
[Running the Main Loop] by
murphy
2011-09-24 19:26:51.
D 2011-09-24T19:26:51.445
L Running\sthe\sMain\sLoop
P 6648c15186377adc13d39d941aad12da8e8fa900
U murphy
W 817
<h1>Running the Main Loop</h1>
<verbatim>
(current-main-loop-level) => INTEGER
</verbatim>
Determines the nesting level of currently running main loops.
<verbatim>
(main-loop [YIELD-INTERVAL] [TIMEOUT]) => BOOLEAN
</verbatim>
Enters the Gtk+ main loop. Other CHICKEN threads are allowed to run at least every <tt>YIELD-INTERVAL</tt> seconds (default <tt>0.5</tt>).
The main loop is terminated automatically if no more top level windows are open.
The <tt>TIMEOUT</tt> can be <tt>#f</tt> (the default), a number of seconds or a SRFI-18 time object. When the timeout is reached, the main loop terminates and returns <tt>#f</tt>. Otherwise the procedure always returns <tt>#t</tt>.
<verbatim>
(main-loop-quit!) => VOID
</verbatim>
Causes the innermost running Gtk+ event loop to terminate.
Z de44c8d77052fced6fab303ae44b4b01