Re: [Dbus-cxx-devel] Some 'sent' messages don't get sent
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2009-09-01 17:11:30
|
Patrick Allison wrote: > A (bad) workaround in dbus-cxx would be a mutex preventing messages from > being dispatched while in the read handler in the watch thread. > I've forwarded your emails to the dbus development list to hopefully start a discussion as to whether there is a bug in dbus or dbus-cxx' use of dbus. In the meantime I've commited what I hope will fix the problem. It's difficult for me to test since my systems don't seem to experience the same bug. In short, the fix (hopefully only temporary until we figure out which library the bug is in) simply initiates processing in the dispatch thread if any read or write watch activity occurred. That should allow the dispatch thread and watch thread to operate at full capacity without any dependent locking and still make sure that any silently queued messages are still dealt with. The fixed version is currently in subversion: http://sourceforge.net/projects/dbus-cxx/develop Let me know if this fixes the problem and I'll push out a general release. Thanks Patrick for tracking this one down, ---- Rick |