Changeset 5263 in ntrip for trunk


Ignore:
Timestamp:
Jun 17, 2013, 4:47:48 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/bncpostprocess.cpp

    r5262 r5263  
    5555// Constructor
    5656////////////////////////////////////////////////////////////////////////////
    57 t_postProcessing::t_postProcessing(QObject* parent, int maxSpeed) : QThread(parent) {
     57t_postProcessing::t_postProcessing(QObject* parent, int maxSpeed, int speed) : QThread(parent) {
    5858
    5959  _maxSpeed   = maxSpeed;
     60  _speed      = speed;
    6061  _opt        = new t_pppOpt();
    6162  _rnxObsFile = 0;
     
    204205
    205206    for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
     207
     208      if (_maxSpeed != 0) {
     209        QMutexLocker locker(&_mutex);
     210      }
     211
    206212      if (_isToBeDeleted) {
    207213        QThread::exit(0);
     
    252258////////////////////////////////////////////////////////////////////////////
    253259void t_postProcessing::slotSetSpeed(int speed) {
    254   qDebug() << "speed" << speed;
    255 }
     260  QMutexLocker locker(&_mutex);
     261  _speed = speed;
     262}
  • trunk/BNC/src/rinex/bncpostprocess.h

    r5262 r5263  
    4343 
    4444 public:
    45   t_postProcessing(QObject* parent, int maxSpeed = 0);
     45  t_postProcessing(QObject* parent, int maxSpeed, int speed);
    4646  static void setObsFromRnx(const t_rnxObsFile* rnxObsFile,
    4747                            const t_rnxObsFile::t_rnxEpo* epo,
     
    7474  bool          _isToBeDeleted;
    7575  int           _maxSpeed;
     76  int           _speed;
     77  QMutex        _mutex;
    7678};
    7779
Note: See TracChangeset for help on using the changeset viewer.