Revision a554275...

Go back to digest for 20th April 2014

Bug Fixes in KDE-PIM

Dan Vratil committed changes in [akonadi/1.12] /:

Use per-thread QDBusConnections

This moves DBusConnectionPool from Nepomuk search code to Akonadi and makes
use of it in search infrastructure and couple other classes that interact
with DBus from non-main thread.

QDBusConnection is not thread-safe in Qt 4, so we need to workaround it by
having a connection for each thread. Qt 5 should be OK, so we can remove this
in Frameworks.

This should fix random crashes I've been seeing when SearchTaskManager::addTask()
was called from multiple threads simultaneously.

File Changes

Modified 9 files
  •   server/CMakeLists.txt
  •   server/src/storagejanitor.cpp
  •   server/src/handler/fetchhelper.cpp
  •   server/src/nepomuk/queryserviceclient.cpp
  •   server/src/search/agentsearchinstance.cpp
  •   server/src/search/searchmanager.cpp
  •   server/src/search/searchtaskmanager.cpp
  •   server/src/search/searchtaskmanager.h
  •   server/src/storage/itemretrievalmanager.cpp
9 files changed in total