Changeset 5883 in ntrip for trunk/BNC/src/PPP/pppThread.cpp


Ignore:
Timestamp:
Aug 8, 2014, 3:51:27 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppThread.cpp

    r5860 r5883  
    5656////////////////////////////////////////////////////////////////////////////
    5757t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) {
    58   _opt            = opt;
    59   _pppRunRealTime = 0;
     58  _opt    = opt;
     59  _pppRun = 0;
     60
    6061  connect(this, SIGNAL(finished()), this, SLOT(deleteLater()));
    6162
     
    6768////////////////////////////////////////////////////////////////////////////
    6869t_pppThread::~t_pppThread() {
    69   delete _pppRunRealTime;
     70  delete _pppRun;
    7071}
    7172
     
    7475void t_pppThread::run() {
    7576  try {
    76     _pppRunRealTime = new t_pppRunRealTime(_opt);
    77     QThread::exec();
     77    _pppRun = new t_pppRun(_opt);
     78    if (_opt->_realTime) {
     79      QThread::exec();
     80    }
     81    else {
     82      _ppRun->processFiles();
     83    }
    7884  }
    7985  catch (t_except exc) {
    80     _pppRunRealTime = 0;
     86    _pppRun = 0;
    8187    emit newMessage(QByteArray(exc.what().c_str()), true);
    8288  }
Note: See TracChangeset for help on using the changeset viewer.