[En-Nut-Discussion] NutSleep(0) doesn't yield

Lorenzo Lombardo lorenzo.lombardo at satbn.com
Tue Sep 5 17:21:58 CEST 2006


Simpy call the specific function: NutThreadYield()

----- Original Message ----- 
From: "Uwe Bonnes" <bon at elektron.ikp.physik.tu-darmstadt.de>
To: <en-nut-discussion at egnite.de>
Sent: Tuesday, September 05, 2006 4:38 PM
Subject: [En-Nut-Discussion] NutSleep(0) doesn't yield


> Hallo,
>
> with following code
>
> main
> ...
>  NutThreadCreate("t1", Display, 0, 128);
>  while(1)
>    {
>      icnt++;
>      NutSleep(0);
>    }
>  return 0;
>
> Thread t1 is never called, changing to NutSleep(1), the thread is called. 
> I
> thought, that even NutSleep(0) is a scheduling point.
>
> How else can I yield in main() with minimal impact.
>
> Thanks
> -- 
> Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de
>
> Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
> --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 04/09/2006
>
> 




More information about the En-Nut-Discussion mailing list