[gambit-list] Gambit and GUI (GTK+)

Alex Queiroz asandroq at gmail.com
Fri Apr 1 10:20:11 EDT 2011


Hallo,

On Fri, Apr 1, 2011 at 11:13 AM, Marc Feeley <feeley at iro.umontreal.ca> wrote:
>
>> As I didn't find one I think it is probably a good idea to use C to
>> drive the GUI part and gambit for the rest.
>
> It depends on the GUI library.  In many GUIs there is a main event loop that is part of the GUI API.  This can be a problem because that event loop takes over control of the execution, and prevents the Gambit thread scheduler, and timeouts to operate properly.  Single-thread programs should be OK.
>

     GTK+ at least lets you take control of the main loop. But the
programmer must call a function to let GTK+ process events, so it must
be called often:

http://library.gnome.org/devel/gtk3/stable/gtk3-General.html#gtk-main-iteration-do

-- 
-alex
http://www.artisancoder.com/



More information about the Gambit-list mailing list