From 93a8be53d869a84e240ddb50788de6a0b2daa80f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 4 Jun 2001 23:12:59 +0000 Subject: [PATCH] clean up get copy ifit fails prematurely --- src/ca/getCopy.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ca/getCopy.cpp b/src/ca/getCopy.cpp index 0b317974f..d4db3499f 100644 --- a/src/ca/getCopy.cpp +++ b/src/ca/getCopy.cpp @@ -36,10 +36,20 @@ getCopy::~getCopy () { } +void getCopy::cancel () +{ + this->cacCtx.decrementOutstandingIO ( this->readSeq ); +} + +void getCopy::destroy () +{ + delete this; +} + void getCopy::completion ( unsigned typeIn, arrayElementCount countIn, const void *pDataIn ) { - if ( this->type == typeIn ) { + if ( this->type == typeIn ) { memcpy ( this->pValue, pDataIn, dbr_size_n ( typeIn, countIn ) ); this->cacCtx.decrementOutstandingIO ( this->readSeq ); }