internal void setActive(IncomingAsync cb) { Debug.Assert(_cb == null); _cb = cb; }
// // These functions allow this object to be reused, rather than reallocated. // public override void reset(Instance instance, ResponseHandler handler, Ice.ConnectionI connection, Ice.ObjectAdapter adapter, bool response, byte compress, int requestId) { _cb = null; _inParamPos = -1; base.reset(instance, handler, connection, adapter, response, compress, requestId); // // Prepare the response if necessary. // if(response) { os_.writeBlob(IceInternal.Protocol.replyHdr); // // Add the request ID. // os_.writeInt(requestId); } }
public override void reclaim() { _cb = null; _inParamPos = -1; base.reclaim(); }
public void killAsync() { // // Always runs in the dispatch thread // if(_cb != null) { // // May raise ResponseSentException // _cb.deactivate__(this); _cb = null; } }
// // These functions allow this object to be reused, rather than reallocated. // public override void reset(Instance instance, Ice.ConnectionI connection, Ice.ObjectAdapter adapter, bool response, byte compress, int requestId) { _cb = null; _inParamPos = -1; if(_is == null) { _is = new BasicStream(instance); } base.reset(instance, connection, adapter, response, compress, requestId); }
public override void reclaim() { _cb = null; _inParamPos = -1; if(_is != null) { _is.reset(); } base.reclaim(); }