Changeset 5973 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 17, 2014, 1:35:50 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5972 r5973 52 52 ////////////////////////////////////////////////////////////////////////////// 53 53 t_pppMain::t_pppMain() { 54 cout << "t_pppMain" << endl; 54 55 _running = false; 55 56 } … … 58 59 ////////////////////////////////////////////////////////////////////////////// 59 60 t_pppMain::~t_pppMain() { 61 cout << "~t_pppMain" << endl; 60 62 stop(); 61 63 } … … 89 91 ////////////////////////////////////////////////////////////////////////////// 90 92 void t_pppMain::stop() { 93 94 cout << "t_pppMain::stop" << endl; 91 95 92 96 if (!_running) { -
trunk/BNC/src/PPP/pppRun.cpp
r5954 r5973 61 61 //////////////////////////////////////////////////////////////////////////// 62 62 t_pppRun::t_pppRun(const t_pppOptions* opt) { 63 64 cout << "t_pppRun" << endl; 63 65 64 66 _opt = opt; … … 108 110 connect(BNC_CORE, SIGNAL(mapSpeedSliderChanged(int)), 109 111 this, SLOT(slotSetSpeed(int))); 110 } 112 connect(BNC_CORE, SIGNAL(stopRinexPPP()), this, SLOT(slotSetStopFlag())); 113 } 114 115 _stopFlag = false; 111 116 } 112 117 … … 114 119 //////////////////////////////////////////////////////////////////////////// 115 120 t_pppRun::~t_pppRun() { 121 cout << "~t_pppRun" << endl; 116 122 } 117 123 … … 380 386 int nEpo = 0; 381 387 const t_rnxObsFile::t_rnxEpo* epo = 0; 382 while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) {388 while ( !_stopFlag && (epo = _rnxObsFile->nextEpoch()) != 0 ) { 383 389 ++nEpo; 384 390 … … 439 445 _speed = speed; 440 446 } 447 448 // 449 //////////////////////////////////////////////////////////////////////////// 450 void t_pppRun::slotSetStopFlag() { 451 QMutexLocker locker(&_mutex); 452 cout << "t_pppRun::slotSetStopFlag" << endl; 453 _stopFlag = true; 454 } -
trunk/BNC/src/PPP/pppRun.h
r5954 r5973 38 38 void slotNewObs(QByteArray staID, QList<t_obs> obsList); 39 39 void slotSetSpeed(int speed); 40 void slotSetStopFlag(); 40 41 41 42 private: … … 64 65 t_corrFile* _corrFile; 65 66 int _speed; 67 bool _stopFlag; 66 68 }; 67 69 -
trunk/BNC/src/PPP/pppThread.cpp
r5946 r5973 57 57 t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) { 58 58 59 cout << "t_pppThread" << endl; 60 59 61 _opt = opt; 60 62 _pppRun = 0; … … 69 71 //////////////////////////////////////////////////////////////////////////// 70 72 t_pppThread::~t_pppThread() { 73 cout << "~t_pppThread" << endl; 71 74 delete _pppRun; 72 75 }
Note:
See TracChangeset
for help on using the changeset viewer.