Changeset 836 in ntrip
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r835 r836 29 29 this->setTerminationEnabled(true); 30 30 31 connect(this, SIGNAL(moveSocket(QThread*)), 32 this, SLOT(slotMoveSocket(QThread*))); 33 31 34 // Thread that handles broadcast ephemeris 32 35 // --------------------------------------- … … 220 223 // ------------ 221 224 while (true) { 225 226 if (_clkSocket && _clkSocket->thread() != currentThread()) { 227 emit(moveSocket(currentThread())); 228 } 229 222 230 if (_clkSocket && _clkSocket->state() == QAbstractSocket::ConnectedState) { 223 231 if ( _clkSocket->canReadLine()) { … … 311 319 } 312 320 } 321 322 // 323 //////////////////////////////////////////////////////////////////////////// 324 void t_bns::slotMoveSocket(QThread* tt) { 325 _clkSocket->setParent(0); 326 _clkSocket->moveToThread(tt); 327 slotMessage("bns::slotMoveSocket"); 328 } -
trunk/BNS/bns.h
r816 r836 35 35 void newMessage(const QByteArray msg); 36 36 void error(const QByteArray msg); 37 void moveSocket(QThread* tt); 37 38 38 39 private slots: … … 41 42 void slotMessage(const QByteArray msg); 42 43 void slotError(const QByteArray msg); 44 void slotMoveSocket(QThread* tt); 43 45 44 46 private: -
trunk/BNS/bns.pro
r817 r836 2 2 # Switch to debug configuration 3 3 # ----------------------------- 4 ###CONFIG -= release5 ###CONFIG += debug4 CONFIG -= release 5 CONFIG += debug 6 6 7 7 RESOURCES += bns.qrc
Note:
See TracChangeset
for help on using the changeset viewer.