All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] RTDM timeout value
@ 2007-08-29 14:19 Markus Osterried (BA/EDD)
  2007-08-29 14:32 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Osterried (BA/EDD) @ 2007-08-29 14:19 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Hi,

it seems that in the RTDM API, all the timeout functions which use
nanosecs_rel_t have a strange behaviour.
The timeout in nanoseconds is converted to ticks and the number of ticks
is rounded down. So when we want to wait e.g. 500000 nanoseconds and the
timertick is 1 ms, xnpod_ns2ticks() rounds down to 0. But 0 is the
special value RTDM_TIMEOUT_INFINITE, so we wait forever. I use Xenomai
2.3.1, but I think it's basically the same in trunk.
Wouldn't it be better to round up the ticks instead of round it down?


Thanks
Markus


[-- Attachment #2: Type: text/html, Size: 1121 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-30  6:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 14:19 [Xenomai-core] RTDM timeout value Markus Osterried (BA/EDD)
2007-08-29 14:32 ` Jan Kiszka
2007-08-29 15:07   ` Philippe Gerum
2007-08-29 15:16     ` Gilles Chanteperdrix
2007-08-29 15:28     ` Jan Kiszka
2007-08-30  6:34       ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.