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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ee3f38994d7d1435 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-06 08:46:00 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn4feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3B979A49.FF2C4731@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: protected objects and data structures References: <20010906160537.5a761a20.tonygair@nospam.blueyonder.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 06 Sep 2001 15:45:58 GMT NNTP-Posting-Host: 12.86.35.109 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 999791158 12.86.35.109 (Thu, 06 Sep 2001 15:45:58 GMT) NNTP-Posting-Date: Thu, 06 Sep 2001 15:45:58 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:12810 Date: 2001-09-06T15:45:58+00:00 List-Id: Sure. With variant records you will need to create the linked list such that each element is dynamically allocated and the node is initialized with the variant being stored. This will work unless the variant record you are allocating contains a task object. In that case the allocation is potentially blocking. Potentially blocking operations are forbidden in a protected operation. Jim Rogers Colorado Springs, Colorado USA Tony Gair wrote: > > Has anyone here used a predefined ada data structure inside a protected object. > > My problem is that I need to store a undefined amount of variant records inside a > protected variable / object. > > Any ideas