dbus & threading (fix) ...
alexl at redhat.com
Mon Mar 8 02:03:23 PST 2010
On Fri, 2010-03-05 at 16:33 -0500, Havoc Pennington wrote:
> On Fri, Mar 5, 2010 at 3:43 PM, Michael Meeks <michael.meeks at novell.com> wrote:
> > Of course - something much more complicated, with the same
> > effect could be implemented, but IMHO the exisiting I/O scheme for
> > threading in dbus is somewhat over-complicated. IMHO the ORBit2
> > approach of splitting out an I/O thead to do centralised polling
> > (modeled itself on the UNO approach), that is activated when we first
> > do a call from a non-main thread is rather more elegant, simple, and
> > not noticably less efficient.
> I had a similar suggestion (I think?) in the last paragraph here:
> I might almost suggest that switching libdbus to that model is easier
> than trying to understand whatever libdbus is doing now.
I agree. As long as we do the switch automatically when the first
non-main-thread operation is called. Always having the extra thread for
simple one-thread apps is pretty lame.
More information about the dbus