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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news4.google.com!news.glorb.com!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Intended use of package Ada.Task_Attributes Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 5 May 2005 13:24:48 +0200 Message-ID: <9g3jomw1nprv$.1oustugm8nxot$.dlg@40tude.net> NNTP-Posting-Date: 05 May 2005 13:24:49 MEST NNTP-Posting-Host: b739a0fb.newsread2.arcor-online.net X-Trace: DXC=B92<7l49=AF:BTg1DiO7HBQ5U85hF6f;DjW\KbG]kaMH:cmYYm_h3\Cmf5kjYB01mDWRXZ37ga[7JncfD5BXcIX@U@e[AJ336^@ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:10929 Date: 2005-05-05T13:24:49+02:00 List-Id: On 05 May 2005 12:50:19 +0200, Mark Lorenzen wrote: > Regarding the package Ada.Task_Attributes, what is the intended use of > user-defined task attributes? I can find no godd hints in the AARM. Is > it the intention that a user (programmer) can define all sorts of > attributes or is the package of more use to compiler vendors for > 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de