(file) Return to Thread.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Thread.cpp between version 1.79 and 1.80

version 1.79, 2005/03/12 01:07:42 version 1.80, 2005/03/22 00:36:02
Line 763 
Line 763 
       struct timeval now;       struct timeval now;
       gettimeofday(&now, NULL);       gettimeofday(&now, NULL);
       Uint32 bodies = 0;       Uint32 bodies = 0;
       AtomicInt needed(0);  
  
       if (_dying.value())       if (_dying.value())
       {       {
Line 850 
Line 849 
          th = (Thread*)idq.remove_last();          th = (Thread*)idq.remove_last();
       }       }
  
      Tracer::trace(TRC_THREAD, Tracer::LEVEL2,  
                 "We need %u new threads", needed.value());  
       while (needed.value() > 0)   {  
          _link_pool(_init_thread());  
          needed--;  
          pegasus_sleep(0);  
       }  
        return bodies;        return bodies;
     }     }
     catch (...)     catch (...)


Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2