Re: Asyncronous life helper (Was: EggDBus)
- From: David Zeuthen <david fubar dk>
- To: Freddie Unpenstein <fredderic excite com>
- Cc: gtk-devel-list gnome org, gtk-app-devel-list gnome org
- Subject: Re: Asyncronous life helper (Was: EggDBus)
- Date: Sat, 27 Dec 2008 14:29:52 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]