From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: pragma Thread_Local_Storage on record?
Date: Tue, 1 Mar 2016 16:52:11 +0100
Date: 2016-03-01T16:52:11+01:00 [thread overview]
Message-ID: <nb4dlo$knb$1@dont-email.me> (raw)
In-Reply-To: <c4f4f07c-679b-4bda-a4f5-8ee689742b3e@googlegroups.com>
Le 01/03/2016 14:45, hanslad@gmail.com a écrit :
> I am trying to use the pragma Thread_Local_Storage on a record as follows:
Hmmm... Gnat's RM is not crystal clear, but it says:
"The variable may not have default initialization, and if there is an
explicit initialization, it must be either null for an access variable,
or a static expression for a scalar variable."
This seems to indicate that the variable should be access or scalar
only, so not a record.
However, why do you need this non-portable, system-dependent, feature?
Apparently, this is intended only to allow managing foreign (non-Ada)
threads from an Ada program, or if task attributes are too slow for you.
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
prev parent reply other threads:[~2016-03-01 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-01 13:45 pragma Thread_Local_Storage on record? hanslad
2016-03-01 14:44 ` Florian Weimer
2016-03-01 15:22 ` hanslad
2016-03-01 15:55 ` Dmitry A. Kazakov
2016-03-01 16:31 ` hanslad
2016-03-01 17:03 ` Dmitry A. Kazakov
2016-03-01 15:52 ` J-P. Rosen [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox