Can glib use external main loop?
- From: Joshua Lee <muzili gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: Can glib use external main loop?
- Date: Wed, 3 Feb 2010 17:27:47 +0800
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.
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?
Thanks in advance.
] [Thread Prev