From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,db4f13247a2521f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!freenix!news.enst.fr!not-for-mail From: Jerome Hugues Newsgroups: comp.lang.ada Subject: Re: Intended use of package Ada.Task_Attributes Date: Thu, 5 May 2005 11:38:21 +0000 (UTC) Organization: ENST, France Message-ID: References: <9g3jomw1nprv$.1oustugm8nxot$.dlg@40tude.net> NNTP-Posting-Host: merlin.enst.fr X-Trace: avanie.enst.fr 1115293101 90670 137.194.160.24 (5 May 2005 11:38:21 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 5 May 2005 11:38:21 +0000 (UTC) User-Agent: slrn/0.9.7.3 (SunOS) Xref: g2news1.google.com comp.lang.ada:10930 Date: 2005-05-05T11:38:21+00:00 List-Id: 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