From d9508ce1e46f1d4936f7e0e4eb22d84496a6a48b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 4 Jun 2001 23:15:50 +0000 Subject: [PATCH] o set default number of channels guess o clean up get copy ifit fails prematurely --- src/ca/oldAccess.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ca/oldAccess.h b/src/ca/oldAccess.h index 68d207e02..eb5061ebf 100644 --- a/src/ca/oldAccess.h +++ b/src/ca/oldAccess.h @@ -74,6 +74,7 @@ protected: ~oldChannelNotify (); // must allocate from pool private: cacChannel &io; + oldCAC &cacCtx; caCh *pConnCallBack; void *pPrivate; caArh *pAccessRightsFunc; @@ -96,6 +97,7 @@ public: arrayElementCount count, void *pValue ); void destroy (); void show ( unsigned level ) const; + void cancel (); void * operator new ( size_t size ); void operator delete ( void *pCadaver, size_t size ); protected: @@ -186,7 +188,8 @@ private: class oldCAC : public cacNotify { public: - oldCAC ( bool enablePreemptiveCallback = false ); + oldCAC ( bool enablePreemptiveCallback = false, + unsigned maxNumberOfChannels = 32768 ); virtual ~oldCAC (); void changeExceptionEvent ( caExceptionHandler *pfunc, void *arg ); void registerForFileDescriptorCallBack ( CAFDHANDLER *pFunc, void *pArg ); @@ -379,11 +382,6 @@ inline oldChannelNotify & oldSubscription::channel () const return this->chan; } -inline void getCopy::destroy () -{ - delete this; -} - inline void * getCopy::operator new ( size_t size ) { epicsAutoMutex locker ( getCopy::freeListMutex );