From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Daniel Schnell <daniel.schnell@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] pthread_setname_np
Date: Wed, 15 Nov 2006 18:55:21 +0100 [thread overview]
Message-ID: <455B5489.4070900@domain.hid> (raw)
In-Reply-To: <DD39B5C3F4963040ADC9768BE7E430CB0154F04D@is-hdq-exchange.marel.net>
Daniel Schnell wrote:
> Gilles Chanteperdrix wrote:
>
>
>>The problem is that we would have to store this additional
>>information in the pthread_attr_t structure. And in order to allow
>>users to include and use the Xenomai API and the native pthread API
>>at the same time, Xenomai use the same definition for all the
>>pthread_* types as the native pthread API, and we do not know if the
>>native API has room for an additional string.
>
>
> Which are the space constraints here ? Do we have a fixed amount of
> bytes that maybe inside the pthread_t structure ? Is there a
> compatibility issue to older Xenomai versions ?
The pthread_attr_t structure is handled by Xenomai as an opaque type. We
do not know if there is room for an additional pointer there, and we do
not want to know it; even if there was some room in one version of the
glibc, we would not have any guarantee that this space exists in later
versions.
It is a tradeoff: handling pthread_attr_t as an opaque structure is very
convenient whereas having to use pthread_set_name_np is a minor
inconvenience.
--
Gilles Chanteperdrix
prev parent reply other threads:[~2006-11-15 17:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 11:27 [Xenomai-help] pthread_setname_np Daniel Schnell
2006-11-15 13:10 ` Gilles Chanteperdrix
2006-11-15 13:31 ` Daniel Schnell
2006-11-15 13:43 ` Gilles Chanteperdrix
2006-11-15 14:26 ` Daniel Schnell
2006-11-15 14:52 ` Gilles Chanteperdrix
2006-11-15 15:49 ` Daniel Schnell
2006-11-15 16:08 ` Gilles Chanteperdrix
2006-11-15 16:56 ` [Xenomai-help] [PATCH] pthread_setname_np Daniel Schnell
2006-11-15 17:50 ` Philippe Gerum
2006-11-15 17:02 ` [Xenomai-help] pthread_setname_np Daniel Schnell
2006-11-15 17:55 ` Gilles Chanteperdrix [this message]
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=455B5489.4070900@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=daniel.schnell@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.