Re: GEvent - Proposal for a new threading structure for GLib



On Fri, 2006-11-17 at 17:32 +0100, Murray Cumming wrote:
> This seems similar to a class we have in glibmm, Glib::Dispatcher:
> http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Dispatcher.html#_details
> though that uses pipes to get some kind of locking for free. I didn't
> imlpement it. It's quite popular.

Yeah, Evolution-Data-Server has something similar called an EMsgPort
which uses pipes to help cancel blocking I/O operations.  But using
pipes for simple thread synchronization doesn't scale well, since the
operating system limits the number of open file descriptors.

Many Evolution users were hitting that limit earlier this year until we
seriously cut back on using pipes that way:
http://bugzilla.gnome.org/show_bug.cgi?id=348888

Matthew Barnes




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