avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads DefaultThreadManager.java
Date Fri, 11 Apr 2003 06:04:54 GMT
donaldp     2003/04/10 23:04:53

  Modified:    lib      avalon-framework-4.1.3.jar
                        excalibur-thread-1.1.1.jar
               src/java/org/apache/avalon/cornerstone/blocks/threads
                        DefaultThreadManager.java
  Removed:     lib      excalibur-threadcontext-1.0.jar
  Log:
  Decouple from threadcontext.
  
  Revision  Changes    Path
  1.2       +265 -260  avalon-cornerstone/lib/avalon-framework-4.1.3.jar
  
  	<<Binary file>>
  
  
  1.2       +284 -304  avalon-cornerstone/lib/excalibur-thread-1.1.1.jar
  
  	<<Binary file>>
  
  
  1.28      +3 -11     avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads/DefaultThreadManager.java
  
  Index: DefaultThreadManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/threads/DefaultThreadManager.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- DefaultThreadManager.java	8 Apr 2003 11:18:43 -0000	1.27
  +++ DefaultThreadManager.java	11 Apr 2003 06:04:53 -0000	1.28
  @@ -58,7 +58,6 @@
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
  -import org.apache.excalibur.threadcontext.ThreadContext;
   
   /**
    * Default implementation of ThreadManager.
  @@ -85,21 +84,14 @@
       public void configure( final Configuration configuration )
           throws ConfigurationException
       {
  -        ThreadContext threadContext = ThreadContext.getThreadContext();
  -        if( null != threadContext )
  -        {
  -            threadContext = threadContext.duplicate();
  -        }
  -
           final Configuration[] groups = configuration.getChildren( "thread-group" );
           for( int i = 0; i < groups.length; i++ )
           {
  -            configureThreadPool( groups[ i ], threadContext );
  +            configureThreadPool( groups[ i ] );
           }
       }
   
  -    private void configureThreadPool( final Configuration configuration,
  -                                      final ThreadContext threadContext )
  +    private void configureThreadPool( final Configuration configuration )
           throws ConfigurationException
       {
           final String name = configuration.getChild( "name" ).getValue();
  @@ -117,7 +109,7 @@
           try
           {
               final DefaultThreadPool threadPool =
  -                new DefaultThreadPool( name, minThreads, maxThreads, threadContext );
  +                new DefaultThreadPool( name, minThreads, maxThreads );
               threadPool.setDaemon( isDaemon );
               threadPool.enableLogging( getLogger() );
               m_threadPools.put( name, threadPool );
  
  
  

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


Mime
View raw message