summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbusintrospection_p.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-27 18:10:36 +0100
committerThiago Macieira <thiago.macieira@nokia.com>2009-03-27 21:55:28 +0100
commitb410a39fad176593ed75b742a486f8710c6ef60f (patch)
treeb4559d7bb3335feb60c95cff37787900a66c9c69 /src/dbus/qdbusintrospection_p.h
parentec24cf81e231974fde2bb4903a00e63abce6465b (diff)
Fix crashes in D-Bus due to race conditions.
This happens in heavily threaded applications: libdbus-1 asks us to add and remove timers (and watches, but those less often) from any thread. Since QObject's model requires that timers and QSocketDescriptors be added only in the object's own thread, we have to sync back to the main thread. However, since D-Bus keeps adding and removing the timers, we have to keep a queue of timers to be added and that list is accessed by any thread. Make sure that list is only accessed in locked conditions. Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/dbus/qdbusintrospection_p.h')
0 files changed, 0 insertions, 0 deletions