public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Question about "allow per-thread timer" selection option in eCos
@ 2001-04-20  7:38 Huang Qiang
  2001-04-20  8:07 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Huang Qiang @ 2001-04-20  7:38 UTC (permalink / raw)
  To: eCos

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?

Thanks a lots

james

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Question about "allow per-thread timer" selection option in eCos
  2001-04-20  7:38 [ECOS] Question about "allow per-thread timer" selection option in eCos Huang Qiang
@ 2001-04-20  8:07 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-04-20  8:07 UTC (permalink / raw)
  To: Huang Qiang; +Cc: 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-20  8:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-20  7:38 [ECOS] Question about "allow per-thread timer" selection option in eCos Huang Qiang
2001-04-20  8:07 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).