Threading problems in (Win)DBus

Peter Kümmel syntheticpp at gmx.net
Sun Jul 8 23:04:06 PDT 2007


Thiago Macieira wrote:
> Peter Kümmel wrote:
>> Does the test code also work with attached patch which checks
>> if the mutex is NULL.
>>
>> After applying the patch also echo-server needs to initialize
>> the threading, DBus::_init_threading();
> 
> As long as the patch never makes to the main-line D-Bus before D-Bus 2.0, 
> I'm fine with it.
> 
> Don't change DBusRecursiveMutexLockFunction and 
> DBusRecursiveMutexUnlockFunction.
> 
> 

The patch is only for debugging. It would break all code which not
initialize threading, because _dbus_assert((connection)->mutex)
then always fails.

-- 
Peter Kümmel


More information about the dbus mailing list