Changeset 3627 in ntrip


Ignore:
Timestamp:
Jan 22, 2012, 6:26:26 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3626 r3627  
    4848////////////////////////////////////////////////////////////////////////////
    4949t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) {
    50 
    5150  bncSettings settings;
    5251  _input.obsFileName  = settings.value("postObsFile").toString();
    5352  _input.navFileName  = settings.value("postNavFile").toString();
    5453  _input.corrFileName = settings.value("postcorrFile").toString();
    55 
    56   _isToBeDeleted = false;
    5754}
    5855
     
    6057////////////////////////////////////////////////////////////////////////////
    6158t_postProcessing::~t_postProcessing() {
    62   if (isRunning()) {
    63     wait();
    64   }
    65 }
    66 
    67 //
    68 ////////////////////////////////////////////////////////////////////////////
    69 void t_postProcessing::terminate() {
    70   _isToBeDeleted = true;
    71   if (!isRunning()) {
    72     delete this;
    73   }
     59  cout << "~t_postProcessing" << endl;
    7460}
    7561
     
    8268  cout << "corrFile: " << _input.corrFileName.toAscii().data() << endl;
    8369
    84   int MAXI = 10;
     70  int MAXI = 5;
    8571  for (int ii = 1; ii < MAXI; ii++) {
    8672    cout << "ii = " << ii << endl;
    8773    sleep(1);
    8874  }
     75
     76  emit finished();
    8977}
  • trunk/BNC/bncpostprocess.h

    r3626 r3627  
    4949   
    5050 public:
    51   void terminate();
    5251  virtual void run();
    5352 
    5453 private:
    5554  t_postInput _input;
    56   bool        _isToBeDeleted;
    5755};
    5856
  • trunk/BNC/bncwindow.cpp

    r3626 r3627  
    22552255
    22562256  t_postProcessing* postProcessing = new t_postProcessing(this);
    2257   connect(postProcessing, SLOT(finished()), this, SIGNAL(slotFinishedPostProcessing));
     2257  connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing()));
    22582258
    22592259  postProcessing->start();
Note: See TracChangeset for help on using the changeset viewer.