rtems_rate_monotonic_period bug?
Stephan Merker
merker at decrc.abb.de
Wed Sep 27 13:14:09 UTC 2000
It seems to me that rtems_rate_monotonic_period() doesn't work as expected
if I'm using changing period lengths (e.g. as done in the example at page
181 of the C users manual). The first period is used throughout the lifetime
of the period.
E.g.:
while (1) {
rtems_rate_monotonic_period(periodId, 10);
do1();
rtems_rate_monotonic_period(periodId, 90);
do2();
}
I would expect do1() to be executed at 0 ticks and do2() at 10 ticks.
Overall cycle would be 100 ticks. What I get is do1() at 0 ticks, do2() at
10 ticks, overall cycle is 20 ticks.
Having a look in the source ratemonperiod.c, there is no reference to the
length parameter in state RATE_MONOTONIC_ACTIVE. A bug?
I'm using RTEMS 4.5 beta3 on Linux.
Please send a replay to my email directly.
Thanks,
Stephan
---
| Stephan Merker merker at decrc.abb.de |
| DECRC/A4 |
| ABB Corporate Research http://www.decrc.abb.de |
| Speyerer Strasse 4, D-69115 Heidelberg, Germany |
| Phone:+49-6221-596218 Fax:+49-6221-596253 |
More information about the users
mailing list