Changeset 5946 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 16, 2014, 1:45:47 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5944 r5946 63 63 // 64 64 ////////////////////////////////////////////////////////////////////////////// 65 void t_pppMain::start( bool ownThread) {65 void t_pppMain::start() { 66 66 if (_running) { 67 67 return; … … 74 74 while (iOpt.hasNext()) { 75 75 const t_pppOptions* opt = iOpt.next(); 76 t_pppThread* pppThread = new t_pppThread(ownThread, opt); 77 if (ownThread) { 78 pppThread->start(); 79 } 80 else { 81 pppThread->run(); 82 } 76 t_pppThread* pppThread = new t_pppThread(opt); 77 pppThread->start(); 83 78 _pppThreads << pppThread; 84 79 _running = true; … … 94 89 ////////////////////////////////////////////////////////////////////////////// 95 90 void t_pppMain::stop() { 96 97 cout << "t_pppMain::stop" << endl;98 91 99 92 if (!_running) { -
trunk/BNC/src/PPP/pppMain.h
r5905 r5946 12 12 t_pppMain(); 13 13 ~t_pppMain(); 14 void start( bool ownThread);14 void start(); 15 15 void stop(); 16 16 -
trunk/BNC/src/PPP/pppRun.cpp
r5945 r5946 60 60 //////////////////////////////////////////////////////////////////////////// 61 61 t_pppRun::t_pppRun(const t_pppOptions* opt) { 62 63 cout << "t_pppRun" << endl;64 62 65 63 _opt = opt; … … 113 111 //////////////////////////////////////////////////////////////////////////// 114 112 t_pppRun::~t_pppRun() { 115 cout << "~t_pppRun" << endl;116 113 } 117 114 -
trunk/BNC/src/PPP/pppThread.cpp
r5944 r5946 55 55 // Constructor 56 56 //////////////////////////////////////////////////////////////////////////// 57 t_pppThread::t_pppThread( bool ownThread,const t_pppOptions* opt) : QThread(0) {57 t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) { 58 58 59 cout << "t_pppThread" << endl;60 61 _ownThread = ownThread;62 59 _opt = opt; 63 60 _pppRun = 0; … … 72 69 //////////////////////////////////////////////////////////////////////////// 73 70 t_pppThread::~t_pppThread() { 74 cout << "~t_pppThread" << endl;75 71 delete _pppRun; 76 72 } … … 83 79 _pppRun = new t_pppRun(_opt); 84 80 if (_opt->_realTime) { 85 if (_ownThread) { 86 QThread::exec(); 87 } 81 QThread::exec(); 88 82 } 89 83 else { -
trunk/BNC/src/PPP/pppThread.h
r5930 r5946 16 16 Q_OBJECT 17 17 public: 18 t_pppThread( bool ownThread,const t_pppOptions* opt);18 t_pppThread(const t_pppOptions* opt); 19 19 ~t_pppThread(); 20 20 virtual void run(); … … 25 25 26 26 private: 27 bool _ownThread;28 27 const t_pppOptions* _opt; 29 28 t_pppRun* _pppRun;
Note:
See TracChangeset
for help on using the changeset viewer.