This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
cyg_thread_delay doesn't seem to be working
- From: Aziz Bodal <azizbodal at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 31 May 2010 19:10:24 -0500
- Subject: [ECOS] cyg_thread_delay doesn't seem to be working
I am trying to used the cyg_thread_delay function in my cyg_user_start
function however it does not seem applying the delay. I am running the
following snippet and I do not see the output of cyg_current_time()
incrementing or even pausing. The cyg_current_time() always seems to
be 0 when I try to output it using printf. What am I doing wrong?
for (i=0; i < 100000; i++)
{
printf("- %d\r", (int) cyg_current_time());
cyg_thread_delay(5*100);
printf("| %d\r", (int) cyg_current_time());
}
Thanks.
Aziz
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss