- Timestamp:
- Dec 29, 2008, 11:15:50 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1390 r1391 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iostream>42 43 41 #include <math.h> 44 42 #include <unistd.h> … … 49 47 #include "bncutils.h" 50 48 #include "RTCM/GPSDecoder.h" 51 52 using namespace std;53 49 54 50 // Constructor … … 121 117 while(it.hasNext()){ 122 118 bncGetThread* thread = it.next(); 123 cout << "~bncCaster A" << endl;124 119 thread->terminate(); 125 cout << "~bncCaster B" << endl;126 120 thread->wait(); 127 cout << "~bncCaster C" << endl;128 121 delete thread; 129 cout << "~bncCaster D" << endl;130 122 } 131 123 delete _out; -
trunk/BNC/bncgetthread.cpp
r1390 r1391 302 302 //////////////////////////////////////////////////////////////////////////// 303 303 void bncGetThread::terminate() { 304 cout << "terminate a" << endl;305 304 if (_query) { 306 305 _query->stop(); 307 306 } 308 cout << "terminate b" << endl;309 307 QThread::terminate(); 310 308 } -
trunk/BNC/bncnetqueryv2.cpp
r1390 r1391 37 37 } 38 38 39 // 39 // Stop (quit even loop) 40 40 //////////////////////////////////////////////////////////////////////////// 41 41 void bncNetQueryV2::stop() { 42 _reply->abort();43 42 _eventLoop->quit(); 44 43 } -
trunk/BNC/bncnetqueryv2.h
r1389 r1391 11 11 virtual ~bncNetQueryV2(); 12 12 13 virtual void stop(); 13 14 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData); 14 15 virtual void startRequest(const QUrl& url, const QByteArray& gga);
Note:
See TracChangeset
for help on using the changeset viewer.