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,acefc8d2b252a0d9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-30 17:06:22 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!btnet-peer1!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail From: "Tony Gair" Newsgroups: comp.lang.ada Subject: Re: Tasks sharing a protected object Date: Wed, 31 Oct 2001 00:59:44 -0800 Organization: BT Internet Message-ID: <9rnime$5cc$1@neptunium.btinternet.com> References: NNTP-Posting-Host: host217-34-66-20.in-addr.btopenworld.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Xref: archiver1.google.com comp.lang.ada:15448 Date: 2001-10-31T00:59:44-08:00 List-Id: 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.... one sure way is two adasocket the storing task ala S.Tardeau "Ted Dennison" wrote in message news:YJeC7.1486$xS6.2081@www.newsranger.com... > In article , Martin Magnusson says... > > > >I want to have two tasks sharing a protected object with data used by > >both tasks. How do I make them see the same object? I have three > >files defining the different types, skeletons for them are shown > >below. How can I set the object to use when declaring the task types? > > Pretty simple. Either: > > o Put it in a package spec that both can "with", or > o Make them task *types* with the protected type as a discriminint, then pass > the proper object in when they are created, or > o Make an "initialize" rendezvous for both tasks, and pass the protected object > in as a parameter. > > --- > 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.