- Timestamp:
- Dec 29, 2008, 11:12:15 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1353 r1390 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iostream> 42 41 43 #include <math.h> 42 44 #include <unistd.h> … … 47 49 #include "bncutils.h" 48 50 #include "RTCM/GPSDecoder.h" 51 52 using namespace std; 49 53 50 54 // Constructor … … 117 121 while(it.hasNext()){ 118 122 bncGetThread* thread = it.next(); 123 cout << "~bncCaster A" << endl; 119 124 thread->terminate(); 125 cout << "~bncCaster B" << endl; 120 126 thread->wait(); 127 cout << "~bncCaster C" << endl; 121 128 delete thread; 129 cout << "~bncCaster D" << endl; 122 130 } 123 131 delete _out; -
trunk/BNC/bncgetthread.cpp
r1387 r1390 297 297 delete _rawOutFile; 298 298 delete _serialPort; 299 } 300 301 // 302 //////////////////////////////////////////////////////////////////////////// 303 void bncGetThread::terminate() { 304 cout << "terminate a" << endl; 305 if (_query) { 306 _query->stop(); 307 } 308 cout << "terminate b" << endl; 309 QThread::terminate(); 299 310 } 300 311 -
trunk/BNC/bncgetthread.h
r1377 r1390 52 52 53 53 ~bncGetThread(); 54 55 void terminate(); 54 56 55 57 QByteArray staID() const {return _staID;} -
trunk/BNC/bncnetquery.h
r1387 r1390 17 17 } 18 18 virtual ~bncNetQuery() {}; 19 19 20 virtual void stop() = 0; 20 21 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData) = 0; 21 22 virtual void startRequest(const QUrl& url, const QByteArray& gga) = 0; -
trunk/BNC/bncnetqueryv1.cpp
r1385 r1390 34 34 bncNetQueryV1::~bncNetQueryV1() { 35 35 delete _socket; 36 } 37 38 // 39 //////////////////////////////////////////////////////////////////////////// 40 void bncNetQueryV1::stop() { 41 36 42 } 37 43 -
trunk/BNC/bncnetqueryv1.h
r1384 r1390 9 9 virtual ~bncNetQueryV1(); 10 10 11 virtual void stop(); 11 12 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData); 12 13 virtual void startRequest(const QUrl& url, const QByteArray& gga); -
trunk/BNC/bncnetqueryv2.cpp
r1389 r1390 35 35 delete _reply; 36 36 delete _manager; 37 } 38 39 // 40 //////////////////////////////////////////////////////////////////////////// 41 void bncNetQueryV2::stop() { 42 _reply->abort(); 43 _eventLoop->quit(); 37 44 } 38 45
Note:
See TracChangeset
for help on using the changeset viewer.