Re: Cothreads in glib 2.0?



Erik Walthinsen <omega temple-baptist com> writes:

> Has any thought been given to including cothreads (aka coroutines) in glib
> 2.0?  I'm willing to do all the work to get this in glib 2.0, and have a
> significant glib-like codebase to start from.
> 
> If anyone wants to see the code I'd start from, go to the CVS browser on
> http://gstreamer.net/ and look at gstreamer/gst/cothread.[ch].  More work
> would be needed, but I think it'd be a valuable addition to glib.

Certainly not for GLib 2.0 - the feature set is pretty much frozen
for GLib 2.0.

I'd be pretty hestitant about adding this to GLib at all - it's
not _generally_ useful, if it is occasionally useful, and there
are all sorts of possible bad interactions with the environment.

(In particular, with threading, either kernel or userspace, and with
things like C++ exceptions.)

Regards,
                                        Owen




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