From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49D530C8.8050109@domain.hid> Date: Thu, 02 Apr 2009 23:40:24 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <49D513D8.5020001@domain.hid> In-Reply-To: <49D513D8.5020001@domain.hid> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [PATCH] libnative: Avoid double-evaluation of rt_task_self() List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core 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 evaluatino ? -- Gilles.