Changeset 836 in ntrip for trunk/BNS/bns.cpp
- Timestamp:
- Apr 16, 2008, 12:09:18 PM (16 years ago)
- File:
-
- 1 edited
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 }
Note:
See TracChangeset
for help on using the changeset viewer.