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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,acefc8d2b252a0d9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-01 13:17:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-snh1.gtei.net!washdc3-snh1.gtei.net!news.gtei.net!news.mindspring.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9rnime$5cc$1@neptunium.btinternet.com> Subject: Re: Tasks sharing a protected object Message-ID: <1ZiE7.9142$xS6.12755@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 01 Nov 2001 16:16:45 EST Organization: http://www.newsranger.com Date: Thu, 01 Nov 2001 21:16:45 GMT Xref: archiver1.google.com comp.lang.ada:15583 Date: 2001-11-01T21:16:45+00:00 List-Id: In article <9rnime$5cc$1@neptunium.btinternet.com>, Tony Gair says... > >Are you sure ted that the protected object will work that way, >I thought the data storing package would have to be the parent of both tasks >sharing the data, > >are you sure that two identical protected objects (with different data would >be created.... >"Ted Dennison" wrote in message >news:YJeC7.1486$xS6.2081@www.newsranger.com... >> o Make them task *types* with the protected type as a discriminint, then >pass A discriminant has to be a "discrete or access subtype". That means that you'd really have to pass in a *pointer* to the protected object (I was sort of glossing over that bit for simplicity). That means that they would indeed be the same protected object, unless you purposely make it otherwise. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.