From: "Ignacio García Pérez" <iggarpe@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Application broken 2.3.4 ---> 2.4.0
Date: Tue, 11 Dec 2007 13:58:46 +0100 [thread overview]
Message-ID: <475E8986.1010901@domain.hid> (raw)
In-Reply-To: <475E7F84.1040600@domain.hid>
>> Anyway, something is truly screwed up when
>> rt_task_set_periodic(&_blink_thread, rt_timer_read(), mili2count(250))
>> fails to make the task periodic...
>>
>
> That's due to the reworked timer subsystem: Starting timers (like the
> periodic task timer) in the past is reported as error - up to the
> application in this case. One may discuss if this case can be considered
> as an undocumented API change (I haven't re-read the docs in this regard
> yet).
>
At least the rt_task_set_periodic documenations says nothing about it.
I don't know about the timer subsystem, but from the native API point of
view, the behaviour that makes most sense is the old, that is, if I set
a task periodic with a start time in the past, it should be scheduled
immediately.
I hope there is a very good reason for this behaviour change, because I
bet it is going to cause a lot of headaches to a lot of people.
For example, in a code like this:
rt_task_set_periodic(&mytask, some_time_in_the_near_future, mili2count(100))
There is always a chance that "some_time_in_the_future" is in the past
by the time the call to rt_task_set_periodic is called (due to this task
being delayed by some higher priority task).
WHAT am I supposed to do, check the result of each an every
rt_task_set_periodic call???
It is clearly a case of "*better later than never*". I'd rather have the
periodic task start scheduled a bit late than not scheduled at all.
next prev parent reply other threads:[~2007-12-11 12:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 11:38 [Xenomai-help] Application broken 2.3.4 ---> 2.4.0 Ignacio García Pérez
2007-12-11 12:04 ` Ignacio García Pérez
2007-12-11 12:16 ` Jan Kiszka
2007-12-11 12:58 ` Ignacio García Pérez [this message]
2007-12-11 13:16 ` Ignacio García Pérez
2007-12-11 13:41 ` Gilles Chanteperdrix
2007-12-11 15:17 ` Ignacio García Pérez
2007-12-11 16:41 ` Gilles Chanteperdrix
[not found] ` <47624674.5070107@domain.hid>
2007-12-14 9:46 ` Gilles Chanteperdrix
2007-12-14 17:06 ` Ignacio García Pérez
2007-12-14 19:01 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=475E8986.1010901@domain.hid \
--to=iggarpe@domain.hid \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.