Changing threading semantics from init early to init before second thread

Havoc Pennington hp at redhat.com
Mon Aug 28 08:02:53 PDT 2006


Alexander Larsson wrote:
> 
> I saw another interesting approach in libgamin. They use ELF magic (weak
> symbols) to avoid linking to libpthreads, and then only use threads if
> the app that pulled in libgamin linked to libpthreads.
> 
> We could use the same approach when selecting the default thread
> implementation.

How gross is it? I mean, is it a bunch of weird magic that will keep 
breaking, or pretty straightforward?

Havoc



More information about the dbus mailing list