added proper rundown of db events and db put call backs

This commit is contained in:
Jeff Hill
2000-05-31 22:05:19 +00:00
parent c9d6b15639
commit 937bbc7dca
6 changed files with 95 additions and 17 deletions

View File

@@ -34,10 +34,16 @@ dbSubscriptionIO::dbSubscriptionIO ( dbChannelIO &chanIO,
cacNotifyIO ( notifyIn ), chan ( chanIO ), es ( 0 ),
type ( typeIn ), count ( countIn )
{
this->chan.lock ();
this->chan.eventq.add ( *this );
this->chan.unlock ();
}
dbSubscriptionIO::~dbSubscriptionIO ()
{
this->chan.lock ();
this->chan.eventq.remove ( *this );
this->chan.unlock ();
if ( this->es ) {
db_cancel_event ( this->es );
}