Re: Moving main loop to GLib.



Quoting Owen Taylor (otaylor@redhat.com):

> To run the main loop, we use the following interface.
> The main difference for this is that run() and quit()
> are done for a specific GMainLoop *, instead of
> for the current main loop. This avoids the problem
> one occasionally sees where one has a main window and
> a dialog up, one quits the main window, and the dialog
> stays up until you quit it.

This looks good *if* it means that it is possible to write code which
calls the mainloop when I need it. This is one of the biggest obstacles
in Xt/Tcl/Gtk+ right now: You can't write your own mainloop to do your
own thing (eg. I have a thread system and my own global lock to protect
non-concurrent parts; it must then be possible to use this lock when
waiting for events). Is that possible with this approach ?

--
Dipl. Inf. (FH) Aaron "Optimizer" Digulla     Assistent im BIKS Labor, FB WI
"(to) optimize: Make a program faster by      FH Konstanz, Brauneggerstr. 55
improving the algorithms rather than by       Tel:+49-7531-206-514
buying a faster machine."                     EMail: digulla@fh-konstanz.de



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]