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: Equivalent of sleep() in ECOS for delay


"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/


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