Changeset 5238 in ntrip


Ignore:
Timestamp:
Jun 17, 2013, 9:06:09 AM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r5237 r5238  
    21142114  }
    21152115
     2116  if (_postProcessing) {
     2117    _postProcessing->terminate();
     2118  }
     2119
    21162120  QMainWindow::closeEvent(event);
    21172121}
  • trunk/BNC/src/rinex/bncpostprocess.cpp

    r5215 r5238  
    6161  _corrFile   = 0;
    6262  _pppClient  = 0;
     63  _isToBeDeleted = false;
    6364
    6465  bncSettings settings;
     
    8182////////////////////////////////////////////////////////////////////////////
    8283t_postProcessing::~t_postProcessing() {
     84  qDebug() << "~t_postProcessing";
    8385  delete _pppClient;
    8486  delete _rnxNavFile;
     
    135137}
    136138
     139//
     140////////////////////////////////////////////////////////////////////////////
     141void t_postProcessing::terminate() {
     142  _isToBeDeleted = true;
     143  if (!isRunning()) {
     144    delete this;
     145  }
     146}
     147
    137148// 
    138149////////////////////////////////////////////////////////////////////////////
     
    193204
    194205    for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
     206      if (_isToBeDeleted) {
     207        QThread::exit(0);
     208        this->deleteLater();
     209        return;
     210      }
    195211
    196212      const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs];
  • trunk/BNC/src/rinex/bncpostprocess.h

    r5214 r5238  
    6161 public:
    6262  virtual void run();
     63  void terminate();
    6364 
    6465 private:
     
    7071  QFile*        _outFile;
    7172  QTextStream*  _outStream;
     73  bool          _isToBeDeleted;
    7274};
    7375
Note: See TracChangeset for help on using the changeset viewer.