[En-Nut-Discussion] Re: [btnode-development] Re: Nut errors!?

Matthias Ringwald mringwal at inf.ethz.ch
Thu Jul 7 14:46:33 CEST 2005


Hi

I've added the fix from yesterday to CVS HEAD which checks all timers  
if they are elapsed
in NutTimerProcessElapsed but added a nutTimerStopped flag to trigger
checking only when a timer was stopped. this should remove additional
overhead to one list search iff at least one timer was stopped.
all this is done in normal context (not in a critical section)

matthias

On 06.07.2005, at 19:06, Matthias Ringwald wrote:

> a first fix is to remove all timers with callback == 0 in
> NutTimersProcesssElapsed (i've attached code for this below)
>
> another would be to move a timer which is stopped in front of the
> timerList. unfortunately, without a double linked list
> this is not possible in O(1) in NutTimerStopAsync (which might be
> called from Interrupt context).
>
> So what to do: check all items in the timerlist on every thread
> switch, or used double-linked lists for timers?
> (actually, I don't know if there is more to do here.. Harald?)
>




More information about the En-Nut-Discussion mailing list