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/pool/src/java/org/apache/avalon/excalibur/pool AbstractPool.java
Date Sun, 07 Apr 2002 06:28:06 GMT
donaldp     02/04/06 22:28:06

  Modified:    pool/src/java/org/apache/avalon/excalibur/pool
                        AbstractPool.java
  Log:
  Actually make it compile this time.
  
  Revision  Changes    Path
  1.4       +5 -3      jakarta-avalon-excalibur/pool/src/java/org/apache/avalon/excalibur/pool/AbstractPool.java
  
  Index: AbstractPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/pool/src/java/org/apache/avalon/excalibur/pool/AbstractPool.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractPool.java	7 Apr 2002 06:23:13 -0000	1.3
  +++ AbstractPool.java	7 Apr 2002 06:28:06 -0000	1.4
  @@ -21,7 +21,7 @@
    * This is an <code>Pool</code> that caches Poolable objects for reuse.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2002/04/07 06:23:13 $
  + * @version CVS $Revision: 1.4 $ $Date: 2002/04/07 06:28:06 $
    * @since 4.0
    */
   public abstract class AbstractPool
  @@ -58,7 +58,7 @@
       protected void initialize()
           throws Exception
       {
  -        m_mutex.acquire();
  +        lock();
   
           for( int i = 0; i < AbstractPool.DEFAULT_POOL_SIZE; i++ )
           {
  @@ -67,15 +67,17 @@
   
           m_initialized = true;
   
  -        m_mutex.release();
  +        unlock();
       }
   
       protected final void lock()
  +        throws InterruptedException
       {
           m_mutex.acquire();
       }
   
       protected final void unlock()
  +        throws InterruptedException
       {
           m_mutex.release();
       }
  
  
  

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