You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/17 17:22:50 UTC

svn commit: r816235 - /commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java

Author: mturk
Date: Thu Sep 17 15:22:46 2009
New Revision: 816235

URL: http://svn.apache.org/viewvc?rev=816235&view=rev
Log:
Use volatile for counter. Should be atomic thought

Modified:
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java?rev=816235&r1=816234&r2=816235&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestSignal.java Thu Sep 17 15:22:46 2009
@@ -26,7 +26,7 @@
 public class TestSignal extends TestCase
 {
 
-    private static int counter = 0;
+    private static volatile int counter = 0;
     public static Test suite() {
         TestSuite suite = new TestSuite(TestSignal.class);
         return suite;