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]

Re: Question about "allow per-thread timer" selection option in eCos


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


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