ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include "ckbsettings.h"
#include "ckbsettingswriter.h"
#include <QThread>
#include <QMutex>
#include <QDebug>
Go to the source code of this file.
Macros | |
#define | lockMutex QMutexLocker locker(backing == _globalSettings ? &settingsMutex : 0) |
#define | lockMutexStatic QMutexLocker locker(&settingsMutex) |
#define | lockMutexStatic2 QMutexLocker locker2(&settingsMutex) |
#define | lockMutexCache QMutexLocker locker(&settingsCacheMutex) |
Functions | |
QAtomicInt | cacheWritesInProgress (0) |
QMutex | settingsMutex (QMutex::Recursive) |
QMutex | settingsCacheMutex (QMutex::Recursive) |
static QSettings * | globalSettings () |
Variables | |
static QSettings * | _globalSettings = 0 |
static QThread * | globalThread = 0 |
static QMap< QString, QVariant > | globalCache |
#define lockMutex QMutexLocker locker(backing == _globalSettings ? &settingsMutex : 0) |
Definition at line 15 of file ckbsettings.cpp.
Referenced by CkbSettings::childGroups(), CkbSettings::childKeys(), CkbSettings::contains(), and CkbSettings::value().
#define lockMutexCache QMutexLocker locker(&settingsCacheMutex) |
Definition at line 18 of file ckbsettings.cpp.
Referenced by CkbSettings::get(), CkbSettings::set(), and CkbSettings::setValue().
#define lockMutexStatic QMutexLocker locker(&settingsMutex) |
Definition at line 16 of file ckbsettings.cpp.
Referenced by globalSettings(), and CkbSettings::set().
#define lockMutexStatic2 QMutexLocker locker2(&settingsMutex) |
Definition at line 17 of file ckbsettings.cpp.
Referenced by CkbSettings::get().
QAtomicInt cacheWritesInProgress | ( | 0 | ) |
Referenced by CkbSettings::cleanUp(), and CkbSettings::isBusy().
|
static |
Definition at line 27 of file ckbsettings.cpp.
References _globalSettings, and lockMutexStatic.
Referenced by CkbSettings::get(), and CkbSettings::set().
QMutex settingsCacheMutex | ( | QMutex::Recursive | ) |
QMutex settingsMutex | ( | QMutex::Recursive | ) |
|
static |
Definition at line 8 of file ckbsettings.cpp.
Referenced by CkbSettings::cleanUp(), and globalSettings().
|
static |
Definition at line 12 of file ckbsettings.cpp.
Referenced by CkbSettings::get(), CkbSettings::set(), and CkbSettings::setValue().
|
static |
Definition at line 9 of file ckbsettings.cpp.
Referenced by CkbSettings::cleanUp().