All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ignacio García Pérez" <iggarpe@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Jan Kiszka <jan.kiszka@domain.hid>, xenomai@xenomai.org
Subject: Re: [Xenomai-help] Application broken 2.3.4 ---> 2.4.0
Date: Tue, 11 Dec 2007 16:17:08 +0100	[thread overview]
Message-ID: <475EA9F4.3020306@domain.hid> (raw)
In-Reply-To: <2ff1a98a0712110541x12633fa3yb311214d9d0245a1@domain.hid>


>> 2.3.x: returns -ETIMEDOUT but schedules the task for immediate execution.
>>
>> 2.4.0: returns -ETIMEDOUT and *does not* schedule the task for immediate
>> execution.
>>
>> The more I think about it the mode I think this is a bug.
>>
>> I just can't think of a situation in which idate is in the past and it
>> makes sense *not scheduling* the task for immediate execution...
>>     
>
> Why not passing TM_NOW as an initial date if you want the task to be
> scheduled immediately instead of passing a date in the past ? It has
> always worked and still works with Xenomai 2.4.0.
>   
Let's suppose some event happens at time T0 which is recorded. Then, 
after some processing I'm reading to call rt_task_set_periodic, but a 
little delay has passed. If I use:

rt_task_set_periodic(&mytask, TM_NOW, period)

The periodic thread will be executed at:

T0+D    T0+D+period    T0+D+period*2    T0+D+period*3    ...

However, if I use rt_task_set_periodic(&mytask, recorded_time, period):

T0+D    T0+period    T0+period*2    T0+period*3

That is, only the first execution is affected by the delay D. I think 
this option is clearly superior.




  reply	other threads:[~2007-12-11 15:17 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
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 [this message]
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=475EA9F4.3020306@domain.hid \
    --to=iggarpe@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.