[jboss-cvs] JBossAS SVN: r60806 - trunk/connector/src/main/org/jboss/resource/connectionmanager.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 22 15:21:53 EST 2007
Author: weston.price at jboss.com
Date: 2007-02-22 15:21:53 -0500 (Thu, 22 Feb 2007)
New Revision: 60806
Modified:
trunk/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java
Log:
[JBAS-4121]Introduced better protection for race conditions where
a pool could be added to the filler prior to the wait() being
invoked.
Modified: trunk/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java 2007-02-22 20:17:26 UTC (rev 60805)
+++ trunk/connector/src/main/org/jboss/resource/connectionmanager/PoolFiller.java 2007-02-22 20:21:53 UTC (rev 60806)
@@ -82,7 +82,10 @@
{
synchronized (pools)
{
- pools.wait();
+ while(pools.isEmpty())
+ {
+ pools.wait();
+ }
}
}
catch (InterruptedException ie)
More information about the jboss-cvs-commits
mailing list