- Timestamp:
- Jan 22, 2012, 6:26:26 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3626 r3627 48 48 //////////////////////////////////////////////////////////////////////////// 49 49 t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) { 50 51 50 bncSettings settings; 52 51 _input.obsFileName = settings.value("postObsFile").toString(); 53 52 _input.navFileName = settings.value("postNavFile").toString(); 54 53 _input.corrFileName = settings.value("postcorrFile").toString(); 55 56 _isToBeDeleted = false;57 54 } 58 55 … … 60 57 //////////////////////////////////////////////////////////////////////////// 61 58 t_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; 74 60 } 75 61 … … 82 68 cout << "corrFile: " << _input.corrFileName.toAscii().data() << endl; 83 69 84 int MAXI = 10;70 int MAXI = 5; 85 71 for (int ii = 1; ii < MAXI; ii++) { 86 72 cout << "ii = " << ii << endl; 87 73 sleep(1); 88 74 } 75 76 emit finished(); 89 77 } -
trunk/BNC/bncpostprocess.h
r3626 r3627 49 49 50 50 public: 51 void terminate();52 51 virtual void run(); 53 52 54 53 private: 55 54 t_postInput _input; 56 bool _isToBeDeleted;57 55 }; 58 56 -
trunk/BNC/bncwindow.cpp
r3626 r3627 2255 2255 2256 2256 t_postProcessing* postProcessing = new t_postProcessing(this); 2257 connect(postProcessing, S LOT(finished()), this, SIGNAL(slotFinishedPostProcessing));2257 connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing())); 2258 2258 2259 2259 postProcessing->start();
Note:
See TracChangeset
for help on using the changeset viewer.