Thread safety

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


keith preston wrote:
>I've run into a few problems described on this thread.
>http://lists.freedesktop.org/archives/dbus/2007-July/008144.html
>
>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 
connection.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    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 : http://lists.freedesktop.org/archives/dbus/attachments/20070911/e15c3a31/attachment.pgp 


More information about the dbus mailing list