Changeset 243 in ntrip for trunk/BNC/bnccaster.cpp


Ignore:
Timestamp:
Oct 13, 2006, 9:41:15 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r230 r243  
    8383}
    8484
    85 // Run
    86 ////////////////////////////////////////////////////////////////////////////
    87 void bncCaster::run() {
    88   exec();
    89 }
    90 
    9185// New Observations
    9286////////////////////////////////////////////////////////////////////////////
    93 void bncCaster::slotNewObs(const QByteArray& staID, Observation* obs) {
     87void bncCaster::newObs(const QByteArray& staID, Observation* obs) {
     88
     89  QMutexLocker locker(&_mutex);
    9490
    9591  long iSec    = long(floor(obs->GPSWeeks+0.5));
     
    149145////////////////////////////////////////////////////////////////////////////
    150146void bncCaster::addGetThread(bncGetThread* getThread) {
    151   connect(getThread, SIGNAL(newObs(const QByteArray&, Observation*)),
    152           this, SLOT(slotNewObs(const QByteArray&, Observation*)));
    153 
    154147  connect(getThread, SIGNAL(error(const QByteArray&)),
    155148          this, SLOT(slotGetThreadError(const QByteArray&)));
     
    162155////////////////////////////////////////////////////////////////////////////
    163156void bncCaster::slotGetThreadError(const QByteArray& staID) {
     157  QMutexLocker locker(&_mutex);
    164158  _staIDs.removeAll(staID);
    165159  emit( newMessage(
Note: See TracChangeset for help on using the changeset viewer.