[ECOS] Need clarification for cyg_mbox_timed_get()
Andrew Lunn
andrew@lunn.ch
Fri Jun 18 12:03:00 GMT 2004
Nick has already answered, but....
On Thu, Jun 17, 2004 at 11:05:23AM -0700, Jay Foster wrote:
> The documentation for cyg_mbox_timed_get() states that it "will wait until
> either a message is available or until a number of clock ticks have
> occurred."
To fully quote the documentation:
There are two variants of cyg_mbox_get. The first, cyg_mbox_timed_get
will wait until either a message is available or until a number of
clock ticks have occurred. The number of ticks is specified as an
absolute, not relative tick count, and so in order to wait for a
relative number of ticks, the return value of the cyg_current_time()
function should be added to determine the absolute number of ticks.
> I assumed it was clock ticks occurred since the call to
> cyg_mbox_timed_get(), but it seems to behave as if it is clock ticks
> occurred since boot time (not as useful). What is the correct behavior?
Question: Why is it not as useful?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list