Revision 1183338

Go back to digest for 10th October 2010

Features in KDE Base

Michael Pyne committed changes in /trunk/KDE/kdelibs/kdecore/util/kshareddatacache.cpp:

Optimize locking a shared cache.

KSharedDataCache uses a process-local mutex to protect against multiple threads trying
to remap an improperly sized cache. But this pretty much never happens, and the locking
can be better done within the code that does the remapping. This refactoring removes the
cost of a QMutexLocker creation and lock acquisition from the common lock path.

File Changes

Modified 1 files
  • /trunk/KDE/kdelibs/kdecore/util/kshareddatacache.cpp
1 files changed in total