fixed reference to freed memory

This commit is contained in:
Jeff Hill
2002-08-21 23:57:35 +00:00
parent 0058debd45
commit b566183c2f
2 changed files with 11 additions and 13 deletions

View File

@@ -151,6 +151,7 @@ void timer::cancel ()
}
else if ( this->curState == stateActive ) {
this->queue.cancelPending = true;
this->curState = timer::stateLimbo;
if ( this->queue.processThread != epicsThreadGetIdSelf() ) {
// make certain timer expire() does not run after cancel () returns,
// but dont require that lock is applied while calling expire()