Re: Running dbus_connection_read_write_dispatch in a separate thread

Alexandru Sorodoc <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
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().
>

_______________________________________________
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.