imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailtaskprocessor.cpp
branchRCL_3
changeset 5 82749d516180
parent 0 2014ca87e772
child 9 dea39715fc05
equal deleted inserted replaced
1:235a7fc86938 5:82749d516180
   327     TInt taskPriority;
   327     TInt taskPriority;
   328     
   328     
   329 #ifdef _DEBUG
   329 #ifdef _DEBUG
   330     TN_DEBUG2( "CThumbnailTaskProcessor::TASKPROCESSOR-COUNTER---------- in, Tasks = %d", iTasks.Count() );
   330     TN_DEBUG2( "CThumbnailTaskProcessor::TASKPROCESSOR-COUNTER---------- in, Tasks = %d", iTasks.Count() );
   331 #endif
   331 #endif
   332     
       
   333     /* 
       
   334     // remove completed tasks and run priorised task
       
   335     for ( TInt i = 0; i < iTasks.Count(); i++ )
       
   336         {
       
   337         CThumbnailTask* task = iTasks[i];
       
   338         if ( task->State() == CThumbnailTask::EComplete )
       
   339             {
       
   340             // delete completed task
       
   341             delete task;
       
   342             iTasks.Remove( i );
       
   343             
       
   344             // correct the index so that no tasks are skipped
       
   345             i--;
       
   346             if(i <= -1)
       
   347                 {
       
   348                 i = -1;
       
   349                 }
       
   350             }*/
       
   351     
   332     
   352     // remove completed tasks and run priorised task
   333     // remove completed tasks and run priorised task
   353     for ( TInt i = iTasks.Count(); --i >= 0; )
   334     for ( TInt i = iTasks.Count(); --i >= 0; )
   354         {
   335         {
   355         CThumbnailTask* task = iTasks[i];
   336         CThumbnailTask* task = iTasks[i];