commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r914997 - /commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java
Date Mon, 22 Feb 2010 18:08:51 GMT
Author: sebb
Date: Mon Feb 22 18:08:51 2010
New Revision: 914997

URL: http://svn.apache.org/viewvc?rev=914997&view=rev
Log:
Ensure access to stopping flag is correctly published across threads

Modified:
    commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java

Modified: commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java?rev=914997&r1=914996&r2=914997&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java (original)
+++ commons/proper/daemon/trunk/src/test/org/apache/commons/daemon/SimpleDaemon.java Mon Feb
22 18:08:51 2010
@@ -34,7 +34,7 @@
     private ServerSocket server=null;
     private Thread thread=null;
     private DaemonController controller=null;
-    private boolean stopping=false;
+    private volatile boolean stopping=false;
     private String directory=null;
     private Vector handlers=null;
 



Mime
View raw message