make shared variable volatile
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Dec 2010 16:14:24 +0000 (16:14 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Dec 2010 16:14:24 +0000 (16:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1051539 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/threads/CounterLatch.java

index b034b69..1e5f04f 100644 (file)
@@ -49,7 +49,7 @@ public class CounterLatch {
 
     private final Sync sync;
     private final AtomicLong count;
-    private long signal;
+    private volatile long signal;
     private volatile boolean released = false;
     
     /**