Changeset 5973 in ntrip


Ignore:
Timestamp:
Aug 17, 2014, 1:35:50 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppMain.cpp

    r5972 r5973  
    5252//////////////////////////////////////////////////////////////////////////////
    5353t_pppMain::t_pppMain() {
     54  cout << "t_pppMain" << endl;
    5455  _running = false;
    5556}
     
    5859//////////////////////////////////////////////////////////////////////////////
    5960t_pppMain::~t_pppMain() {
     61  cout << "~t_pppMain" << endl;
    6062  stop();
    6163}
     
    8991//////////////////////////////////////////////////////////////////////////////
    9092void t_pppMain::stop() {
     93
     94  cout << "t_pppMain::stop" << endl;
    9195
    9296  if (!_running) {
  • trunk/BNC/src/PPP/pppRun.cpp

    r5954 r5973  
    6161////////////////////////////////////////////////////////////////////////////
    6262t_pppRun::t_pppRun(const t_pppOptions* opt) {
     63
     64  cout << "t_pppRun" << endl;
    6365
    6466  _opt = opt;
     
    108110    connect(BNC_CORE, SIGNAL(mapSpeedSliderChanged(int)),   
    109111            this, SLOT(slotSetSpeed(int)));
    110   }
     112    connect(BNC_CORE, SIGNAL(stopRinexPPP()), this, SLOT(slotSetStopFlag()));
     113  }
     114 
     115  _stopFlag = false;
    111116}
    112117
     
    114119////////////////////////////////////////////////////////////////////////////
    115120t_pppRun::~t_pppRun() {
     121  cout << "~t_pppRun" << endl;
    116122}
    117123
     
    380386  int   nEpo = 0;
    381387  const t_rnxObsFile::t_rnxEpo* epo = 0;
    382   while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) {
     388  while ( !_stopFlag && (epo = _rnxObsFile->nextEpoch()) != 0 ) {
    383389    ++nEpo;
    384390
     
    439445  _speed = speed;
    440446}
     447
     448// 
     449////////////////////////////////////////////////////////////////////////////
     450void 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  
    3838  void slotNewObs(QByteArray staID, QList<t_obs> obsList);
    3939  void slotSetSpeed(int speed);
     40  void slotSetStopFlag();
    4041
    4142 private:
     
    6465  t_corrFile*   _corrFile;
    6566  int           _speed;
     67  bool          _stopFlag;
    6668};
    6769
  • trunk/BNC/src/PPP/pppThread.cpp

    r5946 r5973  
    5757t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) {
    5858
     59  cout << "t_pppThread" << endl;
     60
    5961  _opt       = opt;
    6062  _pppRun    = 0;
     
    6971////////////////////////////////////////////////////////////////////////////
    7072t_pppThread::~t_pppThread() {
     73  cout << "~t_pppThread" << endl;
    7174  delete _pppRun;
    7275}
Note: See TracChangeset for help on using the changeset viewer.