Adding "volatile" to 2 fields shared between threads in ResponseDispatchImpl to avoid any possible asynchronous errors

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@959030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
edwardsmj 2010-06-29 16:57:02 +00:00
commit 1ae654ebbf

View file

@ -54,8 +54,8 @@ public class ResponseDispatchImpl<T> implements ResponseDispatch<T>, Serializabl
private final Condition completed = lock.newCondition();
// The result
private T response = null;
private Throwable fault = null;
private volatile T response = null;
private volatile Throwable fault = null;
public ResponseDispatchImpl( ) {
super();