From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Huang Qiang Cc: eCos Subject: Re: [ECOS] Question about "allow per-thread timer" selection option in eCos Date: Fri, 20 Apr 2001 08:07:00 -0000 Message-id: <3AE050AD.56987B6C@redhat.com> References: X-SW-Source: 2001-04/msg00274.html 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