0

I need to cancel this blocking call from another thread: dbus_connection_read_write(conn, 0);

From the documentation I can guess that I need to unref the connection and it will be enough. Question - is this unref'ing thread safe?

4

1 回答 1

0

您可以通过在 libdbus 中启用资源锁定来实现。可以通过调用 dbus_threads_init_default() 至少一次来完成。

于 2014-02-19T18:04:01.997 回答