This is the mail archive of the ecos-discuss@sources.redhat.com 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]

AW: Delaying a thread for less than 10ms


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

Matthias Gorjup

-----Ursprungliche Nachricht-----
Von: Gary Thomas [mailto:gary@mlbassoc.com]
Gesendet: Dienstag, 7. September 2004 16:46
An: Gorjup Matthias
Cc: 'ecos-discuss@ecos.sourceware.org'
Betreff: Re: [ECOS] Delaying a thread for less than 10ms


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


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