This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about "allow per-thread timer" selection option in eCos
- To: Huang Qiang <jameshq at liverpool dot ac dot uk>
- Subject: Re: [ECOS] Question about "allow per-thread timer" selection option in eCos
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 20 Apr 2001 16:07:25 +0100
- Cc: eCos <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <KIEBICHBADHFCLGCKOPDGEEICBAA.jameshq@liv.ac.uk>
Huang Qiang wrote:
>
> Can cyg_thread_delay() routine work withourt allow per-thread timer option
> (in eCos configuration) selected?
>
> I try to implement cyg_thread_delay() with allow per-thread timer enabled
> but the program halted forever but when I remove the allow per-thread timer
> selection in eCos configuration the program can work with
> cyg_thread_delay(). ( But it seems no actual delay in the thread which call
> the cyg_thread_delay() ) What's wrong?
With per-thread timers disabled, cyg_thread_delay() does absolutely
nothing.
Are you sure you're calling cyg_thread_delay with the correct units? It's
clock ticks, not seconds/milliseconds/etc.
Have you used or looked at the twothreads example program? That uses
cyg_thread_delay.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine