Re: Running dbus_connection_read_write_dispatch in a separate thread

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <8925565.NVJkAZ5rDM@tjmaciei-mobl1>
On Wednesday, 17 June 2020 10:37:53 PDT Alexandru Sorodoc wrote:
> I will do that eventually, but for now I just want something as minimal
> as possible. I will just set a timeout to the read_write_dispatch call
> until I get to do things properly.

Or don't use read_write_dispatch. Poll the file descriptor yourself with a 
poll() call that can be interrupted, then use dbus_connection_dispatch().
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.