This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]