This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Equivalent of sleep() in ECOS for delay
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] Equivalent of sleep() in ECOS for delay
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 18 Jul 2001 17:58:40 +0100
- Cc: 'Thiagarajan Rajasekaran' <rajt at connecttel dot com>,'eCos mailing list' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000c01c10fa4$c8eb94e0$090110ac@TRENT>
"Trenton D. Adams" wrote:
>
> cyg_thread_delay (NUMms) can be used inside of a thread.
Yes, preferentially.
> Otherwise use
> CYGACC_CALL_IF_DELAY_US(10000*NUMms);
>
> I would think that 10000 should be changed to 1000, but I could be
> wrong. I took this out of another piece of code so I'm not really sure
> about that last one.
Yes, 1000.
Or if using the POSIX compatibility package, just use sleep()!
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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/