From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Roberto Bielli <roberto.bielli@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] rt_task_create and rt_task delete re-scheduling calling task
Date: Mon, 14 May 2012 10:11:54 +0200 [thread overview]
Message-ID: <4FB0BE4A.4060006@domain.hid> (raw)
In-Reply-To: <4FB0BA7C.6070704@domain.hid>
On 05/14/2012 09:55 AM, Roberto Bielli wrote:
> Hi,
>
> i saw in the documentation that rt_task_create and rt_task_delete should
> re-scheduling the calling task.
rt_task_create may reschedule the calling task, only "may", not
"should". And it happens in the obvious case: when creating a task with
a higher priority than the current task.
The reason why rt_task_delete may reschedule is documented:
"Native tasks implement a mechanism by which they are immune from
deletion by other tasks while they run into a deemed safe section of
code. This feature is used internally by the native skin in order to
prevent tasks from being deleted in the middle of a critical section,
without resorting to interrupt masking when the latter is not an option.
For this reason, the caller of rt_task_delete() might be blocked and a
rescheduling take place, waiting for the target task to exit such
critical section."
Xenomai online documentation may be found here:
http://www.xenomai.org/documentation/xenomai-2.6/html/api/index.html
And a local copy is installed when you run xenomai package "make install".
--
Gilles.
next prev parent reply other threads:[~2012-05-14 8:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 7:55 [Xenomai-core] rt_task_create and rt_task delete re-scheduling calling task Roberto Bielli
2012-05-14 8:11 ` Gilles Chanteperdrix [this message]
2012-05-14 8:15 ` Philippe Gerum
2012-05-14 9:17 ` 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=4FB0BE4A.4060006@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=roberto.bielli@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.