Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-13 Thread Jan Kiszka
Philippe Gerum wrote: > On Sat, 2009-04-04 at 09:37 +0200, Jan Kiszka wrote: >> Philippe Gerum wrote: >>> On Thu, 2009-04-02 at 23:40 +0200, Gilles Chanteperdrix wrote: Jan Kiszka wrote: > [ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] > > Keep the result of

Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-04 Thread Philippe Gerum
On Sat, 2009-04-04 at 09:37 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Thu, 2009-04-02 at 23:40 +0200, Gilles Chanteperdrix wrote: > >> Jan Kiszka wrote: > >>> [ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] > >>> > >>> Keep the result of rt_task_self() in a loca

Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-04 Thread Jan Kiszka
Philippe Gerum wrote: > On Thu, 2009-04-02 at 23:40 +0200, Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> [ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] >>> >>> Keep the result of rt_task_self() in a local variable to avoid the >>> second invocation. >> Maybe we could

Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-02 Thread Philippe Gerum
On Thu, 2009-04-02 at 23:40 +0200, Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > [ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] > > > > Keep the result of rt_task_self() in a local variable to avoid the > > second invocation. > > Maybe we could create a pure/const va

Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > [ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] > > Keep the result of rt_task_self() in a local variable to avoid the > second invocation. Maybe we could create a pure/const variant of rt_task_self() for use in task.c only which would avoid the double e

[Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self()

2009-04-02 Thread Jan Kiszka
[ can be pulled from git.xenomai.org/xenomai-jki.git queues/assorted ] Keep the result of rt_task_self() in a local variable to avoid the second invocation. Signed-off-by: Jan Kiszka --- src/skins/native/task.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/skin