avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl WorkerThread.java
Date Fri, 19 Jul 2002 03:55:06 GMT
donaldp     2002/07/18 20:55:06

  Modified:    thread/src/java/org/apache/avalon/excalibur/thread/impl
                        WorkerThread.java
  Log:
  Make sure name is set at start of each execution.
  
  Revision  Changes    Path
  1.6       +5 -4      jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/WorkerThread.java
  
  Index: WorkerThread.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/WorkerThread.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- WorkerThread.java	19 Jul 2002 02:20:45 -0000	1.5
  +++ WorkerThread.java	19 Jul 2002 03:55:06 -0000	1.6
  @@ -33,6 +33,8 @@
       private ThreadContext m_context;
       private boolean m_alive;
   
  +    private String m_name;
  +
       /**
        * Allocates a new <code>Worker</code> object.
        */
  @@ -41,13 +43,11 @@
                               final Pool pool,
                               final ThreadContext context )
       {
  -        super( group, name );
  -
  +        super( group, "" );
  +        m_name = name;
           m_pool = pool;
           m_context = context;
  -
           m_work = null;
  -
           m_alive = true;
   
           setDaemon( false );
  @@ -76,6 +76,7 @@
   
               try
               {
  +                Thread.currentThread().setName( m_name );
                   if( null != m_context ) ThreadContext.setThreadContext( m_context );
                   m_work.execute();
                   m_threadControl.finish( null );
  
  
  

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


Mime
View raw message