Changeset 4073 in ntrip


Ignore:
Timestamp:
Apr 28, 2012, 1:29:52 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r4072 r4073  
    2020#include "bncapp.h"
    2121
     22QMutex bncSettings::_mutex;  // static mutex
     23
    2224// Constructor
    2325////////////////////////////////////////////////////////////////////////////
    2426bncSettings::bncSettings(bool noInit) {
     27  QMutexLocker locker(&_mutex);
    2528
    2629  _bncApp = static_cast<bncApp*>(qApp);
     
    195198////////////////////////////////////////////////////////////////////////////
    196199bncSettings::~bncSettings() {
     200  QMutexLocker locker(&_mutex);
    197201
    198202}
     
    202206QVariant bncSettings::value(const QString& key,
    203207                            const QVariant& defaultValue) const {
    204  
     208  QMutexLocker locker(&_mutex);
     209
    205210  if (_bncApp->_settings.contains(key)) {
    206211    return _bncApp->_settings[key];
     
    220225////////////////////////////////////////////////////////////////////////////
    221226void bncSettings::remove(const QString& key ) {
     227  QMutexLocker locker(&_mutex);
    222228
    223229}
     
    226232////////////////////////////////////////////////////////////////////////////
    227233void bncSettings::sync() {
    228 
    229 }
     234  QMutexLocker locker(&_mutex);
     235
     236}
Note: See TracChangeset for help on using the changeset viewer.