Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
您可以通过在 libdbus 中启用资源锁定来实现。可以通过调用 dbus_threads_init_default() 至少一次来完成。