Signals & threads - low level C API [Newbie question]
sith.list at gmail.com
Fri Jan 26 11:24:55 PST 2007
Thanks for the reply.
> What function did you call in the processing thread? If you called
> dbus_connection_read_write, it'll block on the socket access. You need to
> release the transport to make other threads work.
> In other words, you need a full mainloop in your thread: a select(2)-based
> socket notifier and timer implementation.
I use dbus_connection_read_write_dispatch and a filter func that just does
dmessage_get_args and returns NOT_YET_HANDLED.
The send thread does something like this
All the calls other than flush returns without error. I assume thats because
they dont use the transport?
Do i still need the main loop you are talking about in the above simple
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus