comp.lang.ada
 help / color / mirror / Atom feed
From: Jerome Hugues <hugues@merlin-lenchanteur.enst.fr>
Subject: Re: Intended use of package Ada.Task_Attributes
Date: Thu, 5 May 2005 11:38:21 +0000 (UTC)
Date: 2005-05-05T11:38:21+00:00	[thread overview]
Message-ID: <slrnd7k1ct.4m8.hugues@merlin.enst.fr> (raw)
In-Reply-To: 9g3jomw1nprv$.1oustugm8nxot$.dlg@40tude.net

In article <9g3jomw1nprv$.1oustugm8nxot$.dlg@40tude.net>, Dmitry A. Kazakov wrote:
>> implementing implementation-defined task attributes / properties?
>> 
>> What constitutes a "good use" of this package?
> 
> Basically the task ID is anything you need. You can then create a hash
> table to keep pointers to the task specific data global in your system.
> This will require dynamic handling of the table and also checking if the
> table contains task data and creating them if necessary. Task_Attributes
> provides an alternative which might appear more usable in an embedded or
> real-time system: statically allocated data, faster data access (no hash
> table search needed) etc.

Except that it is explicitely forbidden by the Ravenscar profile :(

see http://www.adaic.com/standards/rm-amend/html/RM-D-13-1.html

-- 
Jerome



  reply	other threads:[~2005-05-05 11:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05 10:50 Intended use of package Ada.Task_Attributes Mark Lorenzen
2005-05-05 11:24 ` Dmitry A. Kazakov
2005-05-05 11:38   ` Jerome Hugues [this message]
2005-05-05 12:34     ` Steve
2005-05-05 15:33       ` Jerome Hugues
2005-05-05 21:09         ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox