revert to using virtual destroy() to destroy timers

This commit is contained in:
Jeff Hill
2001-07-12 17:53:51 +00:00
parent b061bb6eb9
commit c61e68b4e3
22 changed files with 37 additions and 63 deletions

View File

@@ -42,6 +42,13 @@ timer::~timer ()
this->cancel ();
}
void timer::destroy ()
{
epicsAutoMutex autoLock ( this->queue.mutex );
this->~timer ();
this->queue.timerFreeList.release ( this, sizeof( *this ) );
}
void timer::start ( epicsTimerNotify & notify, double delaySeconds )
{
this->start ( notify, epicsTime::getCurrent () + delaySeconds );
@@ -177,11 +184,6 @@ void timer::show ( unsigned int level ) const
}
}
epicsTimerQueue & timer::getQueue () const
{
return this->queue;
}
timerQueue & timer::getPrivTimerQueue()
{
return this->queue;