Dbus in Multi-threaded application

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Mon Sep 18 21:40:09 UTC 2017


On Sun, 27 Aug 2017 22:21:06 +1200, I wrote:

> On Sun, 27 Aug 2017 09:52:21 +0000, Abhi Arora wrote:
> 
> > For example, THREAD B calls a dbus method and it has set a timeout
> > for it. I will then block on it. The THREAD A may dispatch a timeout
> > event if timeout has occurred. I am not completely sure but I think
> > there could be some race condition in this case. Please help me.  
> 
> This is why people prefer coroutines rather than threads.

Here <https://github.com/ldo/animsort> is an example (in Python) of how
to integrate coroutines with the GTK/GLib event loop.


More information about the dbus mailing list