[ECOS] Delaying a thread for less than 10ms
Gary Thomas
gary@mlbassoc.com
Tue Sep 7 14:46:00 GMT 2004
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
More information about the Ecos-discuss
mailing list