AW: [ECOS] Delaying a thread for less than 10ms
Tue Sep 7 15:31:00 GMT 2004
We need a 1ms delay and are just testing the CYGACC_CALL_IF_DELAY_US - it
seems this will solve our problem.
Thanks a lot for the help
Von: Gary Thomas [mailto:email@example.com]
Gesendet: Dienstag, 7. September 2004 16:46
An: Gorjup Matthias
Betreff: Re: [ECOS] Delaying a thread for less than 10ms
On Tue, 2004-09-07 at 08:34, Gorjup Matthias wrote:
> we would like to delay an execution of a thread for less than 10ms. Is
> 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 <firstname.lastname@example.org>
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss