Changeset 385 in ntrip for trunk/BNC


Ignore:
Timestamp:
Feb 1, 2007, 8:12:51 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r383 r385  
    120120////////////////////////////////////////////////////////////////////////////
    121121void bncCaster::reconnecting(const QByteArray& staID) {
     122  QMutexLocker locker(&_mutex);
    122123  if (_rinexWriters.find(staID) != _rinexWriters.end()) {
    123124    bncRinex* rnx = _rinexWriters.find(staID).value();
     
    186187////////////////////////////////////////////////////////////////////////////
    187188void bncCaster::dumpEpochSlot() {
     189  QMutexLocker locker(&_mutex);
    188190  if (_newTime != 0 && _epochs->size() > 0) {
    189191    dumpEpochs(_lastDumpSec + 1, _newTime - _waitTime);
     
    199201////////////////////////////////////////////////////////////////////////////
    200202void bncCaster::slotNewConnection() {
     203  QMutexLocker locker(&_mutex);
    201204  _sockets->push_back( _server->nextPendingConnection() );
    202205}
     
    205208////////////////////////////////////////////////////////////////////////////
    206209void bncCaster::addGetThread(bncGetThread* getThread) {
     210  QMutexLocker locker(&_mutex);
    207211  connect(getThread, SIGNAL(error(const QByteArray&)),
    208212          this, SLOT(slotGetThreadError(const QByteArray&)));
     
    228232////////////////////////////////////////////////////////////////////////////
    229233void bncCaster::dumpEpochs(long minTime, long maxTime) {
     234  QMutexLocker locker(&_mutex);
    230235
    231236  const char begEpoch = 'A';
Note: See TracChangeset for help on using the changeset viewer.