[En-Nut-Discussion] NutSleep(0)

Harald Kipp harald.kipp at egnite.de
Fri Mar 17 20:12:58 CET 2006


At 19:53 17.03.2006 +0100, you wrote:

>A "NutSleep(0)" will return inmediately if there are no more threads
>ready, or will wait for the next clock tick?

It will return immediately.


>I ask because I want to do a long job, but cutting it in subjobs and
>periodically checking that there aren't other threads that need the
>processor.

I'd suggest to use NutThreadYield() instead. This is clearer.

Harald




More information about the En-Nut-Discussion mailing list