Ignore:
Timestamp:
Mar 30, 2011, 7:02:18 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3206 r3207  
    4848  _outSocket  = 0;
    4949  _sOpenTrial = 0;
     50
     51  _isToBeDeleted = false;
    5052
    5153  // Raw Output
     
    186188}
    187189
     190// Safe Desctructor
     191////////////////////////////////////////////////////////////////////////////
     192void bncUploadCaster::deleteSafely() {
     193  QMutexLocker locker(&_mutex);
     194  _isToBeDeleted = true;
     195}
     196
    188197// Destructor
    189198////////////////////////////////////////////////////////////////////////////
     
    337346
    338347  QMutexLocker locker(&_mutex);
     348
     349  // Safely stop and delete
     350  // ----------------------
     351  if (_isToBeDeleted) {
     352    QThread::quit();
     353    deleteLater();
     354    return;
     355  }
    339356
    340357  // Prepare list of lines with satellite positions in SP3-like format
Note: See TracChangeset for help on using the changeset viewer.