Changeset 393 in ntrip


Ignore:
Timestamp:
Feb 3, 2007, 7:40:15 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r306 r393  
    11
    2 CONFIG += release
     2###CONFIG += release
     3CONFIG += debug
    34
    45DEFINES += NO_RTCM3_MAIN
  • trunk/BNC/bnccaster.cpp

    r392 r393  
    103103  // Start dump epoch loop
    104104  // ---------------------
     105  _newObsRunning = false;
    105106  _newTime = 0;
    106107  dumpEpochSlot();
     
    146147
    147148  QMutexLocker locker(&_mutex);
     149  _newObsRunning = true;
    148150
    149151  long iSec    = long(floor(obs->GPSWeeks+0.5));
     
    193195  // --------------------
    194196  _epochs->insert(_newTime, obs);
     197
     198  _newObsRunning = false;
    195199}
    196200
     
    198202////////////////////////////////////////////////////////////////////////////
    199203void bncCaster::dumpEpochSlot() {
    200   QMutexLocker locker(&_mutex);
    201   if (_newTime != 0 && _epochs->size() > 0) {
    202     dumpEpochs(_lastDumpSec + 1, _newTime - _waitTime);
    203 
    204     if (_lastDumpSec < _newTime - _waitTime) {
    205       _lastDumpSec = _newTime - _waitTime;
     204  if (!_newObsRunning) {
     205    if (_newTime != 0 && _epochs->size() > 0) {
     206      dumpEpochs(_lastDumpSec + 1, _newTime - _waitTime);
     207   
     208      if (_lastDumpSec < _newTime - _waitTime) {
     209        _lastDumpSec = _newTime - _waitTime;
     210      }
    206211    }
    207212  }
  • trunk/BNC/bnccaster.h

    r392 r393  
    7676   QMutex                         _mutex;
    7777   long                           _newTime;
     78   bool                           _newObsRunning;
    7879};
    7980
Note: See TracChangeset for help on using the changeset viewer.