Changeset 5883 in ntrip for trunk/BNC/src/PPP/pppThread.cpp
- Timestamp:
- Aug 8, 2014, 3:51:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppThread.cpp
r5860 r5883 56 56 //////////////////////////////////////////////////////////////////////////// 57 57 t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) { 58 _opt = opt; 59 _pppRunRealTime = 0; 58 _opt = opt; 59 _pppRun = 0; 60 60 61 connect(this, SIGNAL(finished()), this, SLOT(deleteLater())); 61 62 … … 67 68 //////////////////////////////////////////////////////////////////////////// 68 69 t_pppThread::~t_pppThread() { 69 delete _pppRun RealTime;70 delete _pppRun; 70 71 } 71 72 … … 74 75 void t_pppThread::run() { 75 76 try { 76 _pppRunRealTime = new t_pppRunRealTime(_opt); 77 QThread::exec(); 77 _pppRun = new t_pppRun(_opt); 78 if (_opt->_realTime) { 79 QThread::exec(); 80 } 81 else { 82 _ppRun->processFiles(); 83 } 78 84 } 79 85 catch (t_except exc) { 80 _pppRun RealTime= 0;86 _pppRun = 0; 81 87 emit newMessage(QByteArray(exc.what().c_str()), true); 82 88 }
Note:
See TracChangeset
for help on using the changeset viewer.