/*--------------------------------------------------------------------- * Cancel the given timer if possible. *-------------------------------------------------------------------*/ static bool timer_cancel( ETimer_t * const t ) { bool rc = false; if ( timer_find_and_delete( t ) == true ) { if ( t->event != 0 ) { Escher_DeletextUMLEvent( t->event ); rc = true; } } return ( rc ); }
/*--------------------------------------------------------------------- * Cancel the given timer if possible. *-------------------------------------------------------------------*/ bool TIM::cancel( ETimer_t * const t ) { bool rc = false; if ( timer_find_and_delete( t ) == true ) { if ( t->event != 0 ) { ((sys_events*) t->event->thismodule)->Escher_DeletextUMLEvent( t->event ); rc = true; } } return ( rc ); }
/*--------------------------------------------------------------------- * Cancel the given timer if possible. *-------------------------------------------------------------------*/ static bool timer_cancel( ETimer_t * const t ) { bool rc = false; #ifdef ESCHER_TASKING_SystemC Escher_mutex_lock( SEMAPHORE_FLAVOR_TIMER ); #endif if ( timer_find_and_delete( t ) == true ) { if ( t->event != 0 ) { Escher_DeletextUMLEvent( t->event ); rc = true; } } #ifdef ESCHER_TASKING_SystemC Escher_mutex_unlock( SEMAPHORE_FLAVOR_TIMER ); #endif return ( rc ); }