Changeset 5775 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 4, 2014, 10:35:04 AM (11 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5774 r5775 95 95 while (it.hasNext()) { 96 96 t_pppThread* pppThread = it.next(); 97 pppThread-> stop();97 pppThread->exit(); 98 98 } 99 99 _pppThreads.clear(); -
trunk/BNC/src/PPP/pppThread.cpp
r5774 r5775 56 56 _opt = opt; 57 57 _pppRun = 0; 58 connect(this, SIGNAL(finished()), this, SLOT(deleteLater())); 59 58 60 connect(this, SIGNAL(newMessage(QByteArray,bool)), 59 61 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); … … 63 65 //////////////////////////////////////////////////////////////////////////// 64 66 t_pppThread::~t_pppThread() { 67 cout << "~t_pppThread" << endl; 65 68 delete _pppRun; 66 69 } … … 71 74 try { 72 75 _pppRun = new t_pppRun(_opt); 76 QThread::exec(); 73 77 } 74 78 catch (pppExcept exc) { … … 76 80 emit newMessage(QByteArray(exc.what().c_str()), true); 77 81 } 78 QThread::exec();79 }80 81 //82 ////////////////////////////////////////////////////////////////////////////83 void t_pppThread::stop() {84 this->exit();85 delete _pppRun; _pppRun = 0;86 this->wait(1000);87 this->deleteLater();88 82 } 89 83 … … 120 114 //////////////////////////////////////////////////////////////////////////// 121 115 t_pppRun::~t_pppRun() { 116 cout << "~t_pppRun" << endl; 122 117 } 123 118 … … 156 151 QStringListIterator it(corrList); 157 152 while (it.hasNext()) { 153 it.next(); 158 154 } 159 155 … … 167 163 QMutexLocker locker(&_mutex); 168 164 169 170 165 vector<t_pppSatObs> satObs; 171 166 t_output output; -
trunk/BNC/src/PPP/pppThread.h
r5774 r5775 39 39 ~t_pppThread(); 40 40 virtual void run(); 41 void stop();42 41 43 42 signals:
Note:
See TracChangeset
for help on using the changeset viewer.