Changing threading semantics from init early to init before second thread

Robert McQueen robert.mcqueen at collabora.co.uk
Mon Aug 21 09:04:52 PDT 2006


Alexander Larsson wrote:
> Yeah, it strikes me as possibly a better idea to just add some simple
> internal mutex and condvar wrappers in dbus (with pthreads and win32
> implementations). As things are now you get into all sorts of
> complications if you're mixing things with their own threading
> abstractions (say Qt and glib) in a process that share a dbus
> connection.

This seems very appealing to me - pthreads are supposed to be the
standard thread mechanism which everyone codes to. I even recall that
win32 has a pthreads implementation floating around somewhere. If it's
sufficient to allow D-Bus to do what it needs even when running in
threads which weren't created under this abstraction, it would be
possible for us to just require pthreads and leave it at that.

Regards,
Rob

> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc 
>                    alexl at redhat.com    alla at lysator.liu.se 
-- 
Robert McQueen
Director, Collabora Ltd.


More information about the dbus mailing list