7 #define lockMutex QMutexLocker locker(backing == _globalSettings ? &mutex : 0)
8 #define lockMutexStatic QMutexLocker locker(&settingsMutex)
9 #define lockMutexStatic2 QMutexLocker locker2(&settingsMutex)
10 #define lockMutexCache QMutexLocker locker(&settingsCacheMutex)
13 _backing(backing), _removals(removals), _updates(updates) {
28 QMapIterator<QString, QVariant> i(
_updates);
31 _backing->setValue(i.key(), i.value());
QMutex settingsCacheMutex
CkbSettingsWriter(QSettings *backing, const QStringList &removals, const QMap< QString, QVariant > &updates)
QMap< QString, QVariant > _updates
QAtomicInt cacheWritesInProgress