Software/AccuChargerExtension/YakinduManualStatechartTimer.cpp
void YakinduManualStatechartTimer::cancel(){
	TimeEvent* actualTimeEvent = firstTimeEvent;
	TimeEvent* nextTimeEvent = null;
	sc_boolean endReached = false;
	while(!endReached){
		if(actualTimeEvent != null){
			nextTimeEvent = actualTimeEvent->nextTimeEvent;
			free(actualTimeEvent);
			actualTimeEvent = nextTimeEvent;
		}else{
			endReached = true;
		}
	}	
}
/*
 * Cancel timer service. Use this to end possible timing threads and free
 * memory resources.
 */
Cancel timer service. Use this to end possible timing threads and free
memory resources.
Cancel timer service . Use this to end possible timing threads and free memory resources .
void YakinduManualStatechartTimer::cancel(){
	TimeEvent* actualTimeEvent = firstTimeEvent;
	TimeEvent* nextTimeEvent = null;
	sc_boolean endReached = false;
	while(!endReached){
		if(actualTimeEvent != null){
			nextTimeEvent = actualTimeEvent->nextTimeEvent;
			free(actualTimeEvent);
			actualTimeEvent = nextTimeEvent;
		}else{
			endReached = true;
		}
	}	
}
void YakinduManualStatechartTimer :: cancel ( ) { TimeEvent * actualTimeEvent = firstTimeEvent ; TimeEvent * nextTimeEvent = null ; sc_boolean endReached = false ; while ( ! endReached ) { if ( actualTimeEvent != null ) { nextTimeEvent = actualTimeEvent -> nextTimeEvent ; free ( actualTimeEvent ) ; actualTimeEvent = nextTimeEvent ; } else { endReached = true ; } } }
Cancel timer service.
Cancel timer service .