Removed unnecessary volatile declaration.
Calls to reset() are always followed by iterate() that provides a memory barrier by changing its state, which is an AtomicReference.
This commit is contained in:
parent
f2f19ee3ba
commit
2e57fb6fad
|
@ -557,14 +557,14 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
|||
|
||||
private class SendCallback extends IteratingCallback
|
||||
{
|
||||
ByteBuffer _content;
|
||||
boolean _lastContent;
|
||||
ResponseInfo _info;
|
||||
ByteBuffer _header;
|
||||
volatile Callback _callback; // TODO is this memory barrier needed?
|
||||
boolean _shutdownOut;
|
||||
private ResponseInfo _info;
|
||||
private ByteBuffer _content;
|
||||
private boolean _lastContent;
|
||||
private Callback _callback;
|
||||
private ByteBuffer _header;
|
||||
private boolean _shutdownOut;
|
||||
|
||||
SendCallback()
|
||||
private SendCallback()
|
||||
{
|
||||
super(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue