commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1022247 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java
Date Wed, 13 Oct 2010 19:16:56 GMT
Author: sebb
Date: Wed Oct 13 19:16:55 2010
New Revision: 1022247

URL: http://svn.apache.org/viewvc?rev=1022247&view=rev
Log:
Document thread safety

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java?rev=1022247&r1=1022246&r2=1022247&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java Wed
Oct 13 19:16:55 2010
@@ -357,12 +357,12 @@ public class StackObjectPool<T> extends 
     /** 
      * The cap on the number of "sleeping" instances in the pool.
      */
-    private int _maxSleeping = DEFAULT_MAX_SLEEPING;
+    private int _maxSleeping = DEFAULT_MAX_SLEEPING; // @GuardedBy("this")
     
     /**
      * Number of objects borrowed but not yet returned to the pool.
      */
-    private int _numActive = 0;
+    private int _numActive = 0; // @GuardedBy("this")
 
     /**
      * Returns the {@link PoolableObjectFactory} used by this pool to create and manage object
instances.



Mime
View raw message