improved internal class hierarchy

This commit is contained in:
Jeff Hill
2001-07-12 16:02:54 +00:00
parent 41a2ba5a9b
commit 1042e657c8
6 changed files with 28 additions and 32 deletions

View File

@@ -153,7 +153,7 @@ double timerQueue::process ( const epicsTime & currentTime )
}
}
timer & timerQueue::createTimer ()
epicsTimer & timerQueue::createTimer ()
{
epicsAutoMutex autoLock ( this->mutex );
void *pBuf = this->timerFreeList.allocate ( sizeof (timer) );
@@ -163,10 +163,10 @@ timer & timerQueue::createTimer ()
return * new ( pBuf ) timer ( *this );
}
void timerQueue::destroyTimer ( timer & tmr )
void timerQueue::destroyTimer ( epicsTimer & tmr )
{
epicsAutoMutex autoLock ( this->mutex );
tmr.~timer ();
tmr.~epicsTimer ();
this->timerFreeList.release ( &tmr, sizeof( tmr ) );
}