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


Rosimildo da Silva wrote:
> 
> From: "Jonathan Larmour" <jlarmour@redhat.com>
> To: "Trenton D. Adams" <tadams@extremeeng.com>
> Cc: "'Thiagarajan Rajasekaran'" <rajt@connecttel.com>; "'eCos mailing list'"
> <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, July 18, 2001 11:58 AM
> Subject: Re: [ECOS] Equivalent of sleep() in ECOS for delay
> 
> > "Trenton D. Adams" wrote:
> > >
> > > cyg_thread_delay (NUMms) can be used inside of a thread.
> >
> > Yes, preferentially.
> >
> 
> OOPS !, I was thought that the argument for
> cyg_thread_delay() was ticks !.

Actually that's right - I didn't notice that. You can use
cyg_clock_get_resolution() to get the resolution, which allows you to
convert ticks to ms.

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]