Thread safety

Thiago Macieira thiago at
Tue Sep 11 12:18:33 PDT 2007

keith preston wrote:
>I've run into a few problems described on this thread.
>The solution I use is a custom build of dbus without the locks dropping
> on that specific funciton.   It seems to work, because when it calls
> out of dbus code in that function it only call the glib add timeout
> routine

I would say that some functions aren't meant to be thread-safe and  I 
would qualify connection setup functions as such.

You should finish setting up the connection (connect, handshake, set 
timeout and watch callbacks) before any other thread gets to use the 

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the dbus mailing list