donaldp 2002/07/18 20:57:22 Modified: thread/src/java/org/apache/avalon/excalibur/thread/impl DefaultThreadPool.java Log: ContextClassLoader is already set in WorkerThread so we can remove it from here Revision Changes Path 1.8 +5 -7 jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/DefaultThreadPool.java Index: DefaultThreadPool.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/DefaultThreadPool.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- DefaultThreadPool.java 18 May 2002 13:20:18 -0000 1.7 +++ DefaultThreadPool.java 19 Jul 2002 03:57:22 -0000 1.8 @@ -22,8 +22,6 @@ /** * This class is the public frontend for the thread pool code. * - * TODO: Should this be configured with min threads, max threads and min spare threads ? - * * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a> * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a> */ @@ -32,8 +30,11 @@ implements ObjectFactory, Loggable, LogEnabled, Disposable, ThreadPool { private SoftResourceLimitingPool m_pool; + private int m_level; + private Logger m_logger; + private ThreadContext m_context; public DefaultThreadPool( final int capacity ) @@ -97,7 +98,7 @@ { if( object instanceof WorkerThread ) { - ( (WorkerThread)object ).dispose(); + ((WorkerThread)object).dispose(); } } @@ -140,10 +141,7 @@ { try { - final WorkerThread worker = (WorkerThread)m_pool.get(); - //TODO: Remove next line - worker.setContextClassLoader( Thread.currentThread().getContextClassLoader() ); - return worker; + return (WorkerThread)m_pool.get(); } catch( final Exception e ) {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>