You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/10/13 21:16:56 UTC

svn commit: r1022247 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java

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.