[jboss-cvs] JBossAS SVN: r74888 - trunk/cluster/src/main/org/jboss/ha/jndi.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 20 14:38:03 EDT 2008
Author: pferraro
Date: 2008-06-20 14:38:03 -0400 (Fri, 20 Jun 2008)
New Revision: 74888
Modified:
trunk/cluster/src/main/org/jboss/ha/jndi/DetachedHANamingService.java
Log:
Fixed thread-safety issues in AutomaticDiscovery.stop()
Modified: trunk/cluster/src/main/org/jboss/ha/jndi/DetachedHANamingService.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/jndi/DetachedHANamingService.java 2008-06-20 16:02:13 UTC (rev 74887)
+++ trunk/cluster/src/main/org/jboss/ha/jndi/DetachedHANamingService.java 2008-06-20 18:38:03 UTC (rev 74888)
@@ -549,10 +549,10 @@
private byte[] ipAddress = null;
/** The multicast group address */
private InetAddress group = null;
- private boolean stopping = false;
+ private volatile boolean stopping = false;
// Thread that is executing the run() method
- private Thread receiverThread = null;
- private boolean receiverStopped = true;
+ private volatile Thread receiverThread = null;
+ private volatile boolean receiverStopped = true;
public AutomaticDiscovery() throws Exception
{
More information about the jboss-cvs-commits
mailing list