(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.25 and 1.26

version 1.25, 2002/08/31 18:41:01 version 1.26, 2002/09/13 17:47:34
Line 457 
Line 457 
    int i = 0;    int i = 0;
    AtomicInt needed(0);    AtomicInt needed(0);
  
    for( ; i < 2; i++)  //   for( ; i < 2; i++) << Fri Sep 13 12:49:46 2002 mdd >>
   // This change prevents the thread pool from killing hung threads.
   // The definition of a hung thread is one that has been on the run queue for too long.
   // "too long" is defined as a time interval that is set when the thread pool is created.
   // Cancelling "hung" threads has proved to be problematic.
   
   // With this change the thread pool will not cancel hung threads. This may prevent a
   // crash depending upon the state of the hung thread. It will cause the thread to hang
   // around and not do anything besides waste space.
   
   // Idle threads, those that have not executed a routine for a time interval, continue to be
   // destroyed. This is normal and should not cause any problems.
   
      for( ; i < 1; i++)
    {    {
       q = map[i];       q = map[i];
       if(q->count() > 0 )       if(q->count() > 0 )


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2