« Return to Thread: RFC - Nut/OS timer handling

Re: RFC - Nut/OS timer handling

by Ethernut :: Rate this Message:

Reply to Author | View in Thread

Nathan Moore wrote:

>> Before abolishing the use of timer callbacks for network timing, I'd
>> like to hear your opinions.
>
> Unless something has changed recently that I haven't seen (I'm on older
> version of Nut)
> there is another problem.  While timers are no longer executed in interrupt
> context they still
> have some of the same constraints as interrupt handlers.
> Particularly they should never yield.  If they do then the context switching
> code becomes
> reentrant.  Then bad things happen.  The run queue and the timer list would
> all have to
> be handled much more carefully.

Good point. I overlooked the yield problem, which makes timer callbacks
unusable for interrupt driven I/O.

Harald




_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

 « Return to Thread: RFC - Nut/OS timer handling