Running dbus_connection_read_write_dispatch in a separate thread

Alexandru Sorodoc ealex95 at gmail.com
Thu Jun 18 16:29:25 UTC 2020


How do I get a file descriptor? dbus_connection_get_unix_fd? The 
documentation seems to advise against doing this, but I suppose that if 
it works it's good enough for a basic prototype until I get to do things 
properly.

On 6/18/20 6:18 PM, Thiago Macieira wrote:
> 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().
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20200618/c56984f1/attachment.htm>


More information about the dbus mailing list