Review Request: Workaround for non-thread-safety of QDBusConnection

Sebastian Trueg trueg at
Thu May 27 14:55:33 BST 2010

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs.


As many of us experienced already QDBusConnection is not thread-safe. As you can see in Qt bug 7475 ( this is not Qt's fault but an issue in libdbus which has been reported a rather long time ago ( In Nepomuk we work around this problem using a pool of connections, one for each thread. This is no perfect solution but at least we get no more crashes. The same applies to KSycoca, too. It is used in multi-threading situations at least in Dolphin.
Thus, this patch moves the DBusConnectionPool to kdecore, making it privately available to all kdelibs components.


  trunk/KDE/kdelibs/kdecore/util/dbusconnectionpool.cpp PRE-CREATION 
  trunk/KDE/kdelibs/kdecore/CMakeLists.txt 1130392 
  trunk/KDE/kdelibs/kdecore/sycoca/ksycoca.cpp 1130392 
  trunk/KDE/kdelibs/kdecore/util/dbusconnectionpool.h PRE-CREATION 
  trunk/KDE/kdelibs/nepomuk/core/CMakeLists.txt 1130392 
  trunk/KDE/kdelibs/nepomuk/core/dbusconnectionpool.h 1130392 
  trunk/KDE/kdelibs/nepomuk/core/dbusconnectionpool.cpp 1130392 





More information about the kde-core-devel mailing list