You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/09/30 02:22:00 UTC
svn commit: r1002908 -
/commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java
Author: sebb
Date: Thu Sep 30 00:22:00 2010
New Revision: 1002908
URL: http://svn.apache.org/viewvc?rev=1002908&view=rev
Log:
Make run field volatile because it is shared between threads
Modified:
commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java
Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java?rev=1002908&r1=1002907&r2=1002908&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/input/Tailer.java Thu Sep 30 00:22:00 2010
@@ -61,7 +61,7 @@ public class Tailer implements Runnable
/**
* The tailer will run as long as this value is true.
*/
- private boolean run = true;
+ private volatile boolean run = true;
/**
* The object which will be responsible for actually reading the file.