This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: System timer resolution and TCP/IP package
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 25 Jan 2002 15:47:42 +0100
- Subject: Re: [ECOS] System timer resolution and TCP/IP package
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
- References: <NFBBJGOLDDDGJPLCMJKNEEGACDAA.jura@intesis.hr>
Jurica Baricevic wrote:
> cyg_thread_delay(1) seems fine.
Completely unrelated to your questions, but cyg_thread_delay(1) reminds
me of something I always wanted to ask:
How long does cyg_thread_delay(1) wait, assuming a 10ms tick? 0-10ms or
10-20ms?
If it's 0-10ms, then it's pretty dangerous to use, because you usually
mean[1] "some short delay in the order of a few ms", but you could just
as well get no delay at all, if the next timer interrupt happens to
arrive right after the call to cyg_thread_delay().
Martin
[1] At lest I do ;-)