zenghu1chen commented on code in PR #230:
URL: https://github.com/apache/commons-pool/pull/230#discussion_r1264935217


##########
src/main/java/org/apache/commons/pool2/PooledObject.java:
##########
@@ -33,6 +34,8 @@
  */
 public interface PooledObject<T> extends Comparable<PooledObject<T>> {
 
+    ReentrantLock lock = new ReentrantLock();

Review Comment:
   This lock is to replace synchronized(PooledObject) with ReentrantLock in the 
GenericObjectPool,BaseGenericObjectPool and GenericKeyedObjectPool class.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to