On Sat, 2008-12-27 at 04:21 -0500, Freddie Unpenstein wrote:
> This is a side-topic, raised by developments in handling DBus, but
> something I feel is worth asking... Is there any mechanism for making
> working with asynchronous stuff easier?

I recently filed this bug

http://bugzilla.gnome.org/show_bug.cgi?id=565501

for adding support for fibers to GLib. In that bug, you'll find a
proof-of-concept patch for modern unices and some notes/links about how
to do this on ancient unices and Win32 too.

The proposed GFiber API is sorta incomplete; we need to figure out the
right API to handle multiple concurrent requests. But I think all that
is pretty doable; just haven't gotten around to it. Since you mention
D-Bus, note that even though the example in the bug uses gio, GFiber can
be used with EggDBus or any async API that uses the the async IO stack
from libgio (GAsyncResult, GAsyncReadyCallback and _finish() functions).

     David


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to