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
Thanks a lot. I got my problem fixed.
Raj
Jonathan Larmour wrote:
> "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/
--
****************************************************************
* Thiagarajan Rajasekaran *
* ConnectTel, Inc. Austin, Texas. *
* Phone : 512-338-1111 Ext-104 Fax : 512-918-0449 *
* Email : rajt@connecttel.com *
* Site : http://www.connecttel.com *
****************************************************************