This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: Playing with memory pool and timeouts ...
Andrew Lunn wrote:
On Tue, Jul 01, 2003 at 04:26:02PM +0200, Matthieu.GIRARDIN@fr.thalesgroup.com wrote:
Hi everybody !
Does someone know how to fill the last parametre of
cyg_semaphore_timed_wait() ?
Is it the number of ticks real (the system add itself the current realtime)
or must I pass
to this fonction, as parametre, realtime + nb_ticks ?
It takes the absolute time to wake up. So you want to pass something like
(cyg_current_time() + nb_ticks)
I'll clarify the documentation on this.
I have the same question for the posix fonction mq_timedreceive() with its
structure timespec ...
I've never used the posix code. Im sure you can read the code and work
it out just as easily as i could....
I know off-hand it's absolute.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss