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

void copyThread::createNewWriteThread (  ) [private, slot]

create new write thread object

create new write thread

Definition at line 187 of file CopyThread.cpp.

References movingMode, MultiThread_ThreadList, newWriteThreadFinish(), WriteThread::setMovingMode(), theWriteThreadList, waitNewWriteThread, and writeThreadOperationFinish().

Referenced by copyThread().

{
      DEBUGCONSOLE(90,"copyThread::createNewWriteThread","start");
      theCurrentThread=new WriteThread(this);
      #if (DEBUG_ULTRACOPIER>0)
      {
            QMutexLocker lock_mutex(&MultiThread_ThreadList);
            theCurrentThread->setId(theWriteThreadList.size());
      }
      #endif
      theCurrentThread->setMovingMode(movingMode);
      theCurrentThread->start(this->priority());
      {
            QMutexLocker lock_mutex(&MultiThread_ThreadList);
            theWriteThreadList.append(theCurrentThread);
      }
      connect(theCurrentThread,     SIGNAL(finished()),                 this, SLOT(newWriteThreadFinish()));
      connect(theCurrentThread,     SIGNAL(haveFinishFileOperation()),  this, SLOT(writeThreadOperationFinish()));
      waitNewWriteThread.release();
      DEBUGCONSOLE(90,"copyThread::createNewWriteThread","stop");
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index