Re: Can glib use external main loop?

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

 



Dear Joshua,

On Mit 03.02.2010 17:27, Joshua Lee wrote:
Hi Guys,
I have a legacy program which use select as the event loop, and i would
like to port it to glib. It will take great effort to do all the
things, so is there any simple way to do it. For example, wrapper the
legacy code with glib main loop.

From
http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html,
It seems that g_main_context_set_poll_func () could possibly be used to
integrate the GLib event loop with an external event loop. Can anyone
tell me how to get it?

Maybe this can answer your question.

http://cvs.schmorp.de/AnyEvent/lib/AnyEvent/Impl/Glib.pm?revision=1.26&view=markup

BR

Aleks
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux