Can d-bus be used for communication among threads?

Havoc Pennington hp at redhat.com
Wed Jul 26 07:27:18 PDT 2006



Chen, Shi Jun SLC CT PEK wrote:
> Dear All,
>  
> I got the introduction on d-bus and am very interested in its goal that 
>  providing a framework for convenient communication among different 
> applications, even if they locate different hosts.
>  
> Here is my concern: 
> Can d-bus be used for communication among threads, besides processes?
>  

Sure. There are probably some bugs in thread safety though if you use 
the same DBusConnection from multiple threads, you may have to debug a 
couple things. If you use a different DBusConnection in each thread it's 
probably pretty painless.

Havoc


More information about the dbus mailing list