This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Delaying a thread for less than 10ms
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Gorjup Matthias <Matthias dot Gorjup at SIEMENS dot AT>
- Cc: "'ecos-discuss at ecos dot sourceware dot org'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 07 Sep 2004 08:45:58 -0600
- Subject: Re: [ECOS] Delaying a thread for less than 10ms
- Organization: MLB Associates
- References: <BFB6C6946ED8D211B1A60800060DA36906BDD5F2@grzs103a.nlg.siemens.at>
On Tue, 2004-09-07 at 08:34, Gorjup Matthias wrote:
> Hello,
>
> we would like to delay an execution of a thread for less than 10ms. Is this
> possible?
> Now we are using cyg_thread_delay(1) to achieve a pause of 10ms.
> But we need a shorter delay for only one thread, al other threads are fine
> with the granularity of 10ms.
How short? If it's truly short, you could use CYGACC_CALL_IF_DELAY_US
Otherwise, you'll need to set up some sort of high[er] resolution clock
[timer] and use that (which, depending on your hardware, might be messy)
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss