avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/thread/src/java/org/apache/excalibur/thread/impl DefaultThreadControl.java
Date Thu, 23 Jan 2003 21:26:14 GMT
bloritsch    2003/01/23 13:26:14

  Modified:    thread/src/java/org/apache/excalibur/thread/impl
                        DefaultThreadControl.java
  Log:
  use a real join command on the thread being controlled
  
  Revision  Changes    Path
  1.5       +1 -13     jakarta-avalon-excalibur/thread/src/java/org/apache/excalibur/thread/impl/DefaultThreadControl.java
  
  Index: DefaultThreadControl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/thread/src/java/org/apache/excalibur/thread/impl/DefaultThreadControl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultThreadControl.java	20 Jan 2003 21:18:23 -0000	1.4
  +++ DefaultThreadControl.java	23 Jan 2003 21:26:14 -0000	1.5
  @@ -91,19 +91,7 @@
       public synchronized void join( final long milliSeconds )
           throws IllegalStateException, InterruptedException
       {
  -        //final long start = System.currentTimeMillis();
  -        wait( milliSeconds );
  -        /*
  -          if( !isFinished() )
  -          {
  -          final long now = System.currentTimeMillis();
  -          if( start + milliSeconds > now )
  -          {
  -          final long remaining = milliSeconds - (now - start);
  -          join( remaining );
  -          }
  -          }
  -        */
  +        m_thread.join(milliSeconds);
       }
   
       public void interupt()
  
  
  

--
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