Philippe Gerum wrote:
> On Thu, 2009-04-02 at 23:40 +0200, Gilles Chanteperdrix wrote:
>> Jan Kiszka wrote:
>>> [ can be pulled from 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 ?
> Can't do const because of pthread_getspecific(), but pure attribute is t
> hand, yes.

At least my gcc 4.3 ignores

RT_TASK *rt_task_self(void) __attribute__ ((pure));

and keeps on inserting two calls in rt_task_delete.


Attachment: signature.asc
Description: OpenPGP digital signature

Xenomai-core mailing list

Reply via email to