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:
parent
2756a41fb6
commit
1ae654ebbf
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue