Changing threading semantics from init early to init before second thread

Andy Wingo wingo at pobox.com
Fri Aug 25 01:47:06 PDT 2006


Hi,

An uninformed comment:

On Thu, 2006-08-24 at 19:33 +0200, Alexander Larsson wrote:
> Sure, if we want to always use threads that would make a bunch of code a
> lot simpler. It will cause e.g. the dbus daemon to always use threading
> code though, which is completely unnecessary given that the daemon is
> single threaded and might cause performance issues.

I wouldn't a priori decide against always-threadsafe behavior. That
might be the right choice, but there are definite advantages to
developers, and uncontended locks are cheap at least on linux, and they
tell me win32 is good as well.

Regards,

Wingo.
-- 
http://wingolog.org/



More information about the dbus mailing list