hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r630417 - in /httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn: ExecReqThread.java GetConnThread.java tsccm/AwaitThread.java
Date Sat, 23 Feb 2008 09:04:33 GMT
Author: rolandw
Date: Sat Feb 23 01:04:32 2008
New Revision: 630417

URL: http://svn.apache.org/viewvc?rev=630417&view=rev
Log:
more volatiles, not sure whether these are needed

Modified:
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java?rev=630417&r1=630416&r2=630417&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java
Sat Feb 23 01:04:32 2008
@@ -50,9 +50,9 @@
  */
 public class ExecReqThread extends GetConnThread {
 
-    protected RequestSpec  request_spec;
-    protected HttpResponse response;
-    protected byte[]       response_data;
+    protected          RequestSpec  request_spec;
+    protected volatile HttpResponse response;
+    protected volatile byte[]       response_data;
 
 
     /**

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java?rev=630417&r1=630416&r2=630417&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java
Sat Feb 23 01:04:32 2008
@@ -48,8 +48,8 @@
     protected HttpRoute               conn_route;
     protected long                    conn_timeout;
 
-    protected ManagedClientConnection connection;
-    protected Throwable               exception;
+    protected volatile ManagedClientConnection connection;
+    protected volatile Throwable               exception;
 
     /**
      * Creates a new thread.

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java?rev=630417&r1=630416&r2=630417&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java
Sat Feb 23 01:04:32 2008
@@ -44,8 +44,8 @@
     protected Lock          wait_lock;
     protected Date          wait_deadline;
 
-    protected boolean       waiting;
-    protected Throwable     exception;
+    protected volatile boolean       waiting;
+    protected volatile Throwable     exception;
 
 
     /**



Mime
View raw message