Re: Dbus in Multi-threaded application

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
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.
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.