Thread safety

jamie jamiemcc at blueyonder.co.uk
Tue Sep 11 10:01:24 PDT 2007


On Tue, 2007-09-11 at 17:18 +0100, Ross Burton wrote:
> Hi,
> 
> If I'm using DBus with the dbus-glib integration, how thread-safe is
> DBus?  Can I go as far as receiving a message in one thread and making
> the reply in another?  I'm expecting a thread pool to be used to handle
> method calls, so there will be a single thread accepting the messages
> but ten different threads sending the replies.

we do exactly that in tracker and have never had a thread problem (make
sure you call dbus_g_thread_init at start though)

jamie





More information about the dbus mailing list