Using more than one thread with C-API
Wilhelm Meier
wilhelm.meier at fh-kl.de
Sat Dec 13 22:54:09 PST 2008
Hi all,
I want to use more than one thread in an application using the dbus
C-API. I looked in the list archives but I didn't find the answer.
I'm using one thread calling
while(dbus_connection_read_write_dispatch(conn, -1)) {
slog(SLOG_DEBUG, "Iteration on dbus call");
}
and another thread wants to send out signals via the same connection.
Well, I know the above loop is wrong in a multithreaded setup, but I
don't find the right way.
Can someone point me to the rigth solution, please.
--
Wilhelm
More information about the dbus
mailing list