From 70b368c854888b6a22e92f937b18f041ddcc6d8a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 25 Jan 2001 02:16:22 +0000 Subject: [PATCH] added new uninstal methods which are initially noops --- src/db/dbCAC.h | 2 ++ src/db/dbPutNotifyIO.cpp | 6 ++++++ src/db/dbSubscriptionIO.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/db/dbCAC.h b/src/db/dbCAC.h index 4ec9aa078..5f52c0797 100644 --- a/src/db/dbCAC.h +++ b/src/db/dbCAC.h @@ -45,6 +45,7 @@ private: dbPutNotifyBlocker &blocker; static tsFreeList < dbPutNotifyIO > freeList; ~dbPutNotifyIO (); // must allocate out of pool + void uninstall (); }; extern "C" void dbSubscriptionEventCallback ( void *pPrivate, struct dbAddr *paddr, @@ -65,6 +66,7 @@ private: unsigned long count; static tsFreeList < dbSubscriptionIO > freeList; ~dbSubscriptionIO (); // must be allocated from pool + void uninstall (); friend void dbSubscriptionEventCallback ( void *pPrivate, struct dbAddr *paddr, int eventsRemaining, struct db_field_log *pfl ); }; diff --git a/src/db/dbPutNotifyIO.cpp b/src/db/dbPutNotifyIO.cpp index 7b4119f32..43eb37d2c 100644 --- a/src/db/dbPutNotifyIO.cpp +++ b/src/db/dbPutNotifyIO.cpp @@ -51,6 +51,10 @@ dbPutNotifyIO::~dbPutNotifyIO () this->blocker.putNotifyDestroyNotify (); } +void dbPutNotifyIO::uninstall () +{ +} + int dbPutNotifyIO::initiate ( struct dbAddr &addr, unsigned type, unsigned long count, const void *pValue) { @@ -99,3 +103,5 @@ void dbPutNotifyIO::completion () } } + + diff --git a/src/db/dbSubscriptionIO.cpp b/src/db/dbSubscriptionIO.cpp index 82ec8d9b4..69c76e4ef 100644 --- a/src/db/dbSubscriptionIO.cpp +++ b/src/db/dbSubscriptionIO.cpp @@ -55,6 +55,10 @@ void dbSubscriptionIO::destroy () delete this; } +void dbSubscriptionIO::uninstall () +{ +} + void * dbSubscriptionIO::operator new ( size_t size ) { return dbSubscriptionIO::freeList.allocate ( size );