Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

copyThread::~copyThread (  )

The destructor.

See also:
copyThread()

Definition at line 91 of file CopyThread.cpp.

References MultiThread_ThreadList, stopTheCopy(), and theWriteThreadList.

{
      DEBUGCONSOLE(90,"copyThread::~copyThread","start");
      stopTheCopy();
      DEBUGCONSOLE(90,"copyThread::~copyThread","delete the write thread");
      {
            QMutexLocker lock_mutex(&MultiThread_ThreadList);
            while(theWriteThreadList.size()>0) {
                  theWriteThreadList.first()->stop();
                  theWriteThreadList.first()->disconnect();
                  delete theWriteThreadList.first();
                  theWriteThreadList.removeFirst();
            }
      }
      DEBUGCONSOLE(90,"copyThread::~copyThread","check the current thread");
      if(isRunning())
      {
            DEBUGCONSOLE(90,"copyThread::~copyThread","seam be running, wait");
            wait(5000);
      }
      delete writeThreadSem;
      DEBUGCONSOLE(90,"copyThread::~copyThread","stop");
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index