[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Running dbus_connection_read_write_dispatch in a separate thread
From:       Thiago Macieira <thiago () kde ! org>
Date:       2020-06-18 15:18:50
Message-ID: 8925565.NVJkAZ5rDM () tjmaciei-mobl1
[Download RAW message or body]

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().

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products



_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic