[En-Nut-Discussion] NutThreadRemoveQueue clears runQueue to NULL

Ole Reinhardt ole.reinhardt at embedded-it.de
Wed Aug 28 10:56:00 CEST 2013


Hi All,

> /*
>  * Timer callback function.
>  *
>  * Timer callbacks are called during context switch processing. They must
>  * return as soon as possible and must not call any potentially blocking
>  * function.
>  *
>  * It would be great to be able to start a thread here, but unfortunately
>  * this doesn't work in Nut/OS. :-(
>  */

Just a rough idea on this comment:

Would'nt it be possible to start a new thread in a timer callback if we
would introduce a NutThreadCreateAsync()?
The idea is to not directly schedule to the new thread but create a
thread that is added to the queue of runnable threads but without
scheduling.
Would this be possible?

However this would not prevent Philips bug, as the scheduling appears in
the uart write there...

Bye,

Ole

-- 
kernel concepts GmbH            Tel: +49-271-771091-14
Sieghuetter Hauptweg 48         Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de


More information about the En-Nut-Discussion mailing list