From: Ted Dennison<dennison@telepath.com>
Subject: Re: Tasks sharing a protected object
Date: Thu, 01 Nov 2001 21:16:45 GMT
Date: 2001-11-01T21:16:45+00:00 [thread overview]
Message-ID: <1ZiE7.9142$xS6.12755@www.newsranger.com> (raw)
In-Reply-To: 9rnime$5cc$1@neptunium.btinternet.com
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" <dennison@telepath.com> 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.
next prev parent reply other threads:[~2001-11-01 21:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-26 14:01 Tasks sharing a protected object Martin Magnusson
2001-10-26 14:49 ` Ted Dennison
2001-10-31 8:59 ` Tony Gair
2001-11-01 21:16 ` Ted Dennison [this message]
2001-10-26 15:20 ` Wes Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox