Changeset 5238 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Jun 17, 2013, 9:06:09 AM (11 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/bncpostprocess.cpp
r5215 r5238 61 61 _corrFile = 0; 62 62 _pppClient = 0; 63 _isToBeDeleted = false; 63 64 64 65 bncSettings settings; … … 81 82 //////////////////////////////////////////////////////////////////////////// 82 83 t_postProcessing::~t_postProcessing() { 84 qDebug() << "~t_postProcessing"; 83 85 delete _pppClient; 84 86 delete _rnxNavFile; … … 135 137 } 136 138 139 // 140 //////////////////////////////////////////////////////////////////////////// 141 void t_postProcessing::terminate() { 142 _isToBeDeleted = true; 143 if (!isRunning()) { 144 delete this; 145 } 146 } 147 137 148 // 138 149 //////////////////////////////////////////////////////////////////////////// … … 193 204 194 205 for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) { 206 if (_isToBeDeleted) { 207 QThread::exit(0); 208 this->deleteLater(); 209 return; 210 } 195 211 196 212 const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs]; -
trunk/BNC/src/rinex/bncpostprocess.h
r5214 r5238 61 61 public: 62 62 virtual void run(); 63 void terminate(); 63 64 64 65 private: … … 70 71 QFile* _outFile; 71 72 QTextStream* _outStream; 73 bool _isToBeDeleted; 72 74 }; 73 75
Note:
See TracChangeset
for help on using the changeset viewer.