tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r883199 - /tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java
Date Mon, 23 Nov 2009 00:28:03 GMT
Author: markt
Date: Mon Nov 23 00:28:03 2009
New Revision: 883199

URL: http://svn.apache.org/viewvc?rev=883199&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48249
Use volatile since field is accessed by multiple threads

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java?rev=883199&r1=883198&r2=883199&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java Mon Nov 23 00:28:03
2009
@@ -194,7 +194,7 @@
 
     
     protected class BlockPoller extends Thread {
-        protected boolean run = true;
+        protected volatile boolean run = true;
         protected Selector selector = null;
         protected ConcurrentLinkedQueue<Runnable> events = new ConcurrentLinkedQueue<Runnable>();
         public void disable() { run = false; selector.wakeup();}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message