avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: avalon-excalibur/event/src/java/org/apache/excalibur/event/command TPSPThreadManager.java
Date Thu, 12 Jun 2003 14:36:16 GMT
bloritsch    2003/06/12 07:36:16

  Modified:    event/src/java/org/apache/excalibur/event/command
                        TPSPThreadManager.java
  Log:
  Ensure the maximium thread count is properly adjusted.
  
  Revision  Changes    Path
  1.28      +5 -1      avalon-excalibur/event/src/java/org/apache/excalibur/event/command/TPSPThreadManager.java
  
  Index: TPSPThreadManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/event/src/java/org/apache/excalibur/event/command/TPSPThreadManager.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- TPSPThreadManager.java	12 Jun 2003 14:35:05 -0000	1.27
  +++ TPSPThreadManager.java	12 Jun 2003 14:36:16 -0000	1.28
  @@ -260,7 +260,11 @@
            */
           public void before( Source context )
           {
  -            if (m_source.size() > (m_threshold + m_margin)) m_threadPool.createThreads(1);
  +            if (m_source.size() > (m_threshold + m_margin))
  +            {
  +                m_threadPool.setMaximumPoolSize(m_threadPool.getPoolSize() + 1);
  +                m_threadPool.createThreads(1);
  +            }
               m_parent.before(context);
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message