comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Protected Objects And Many Processors
Date: Fri, 21 Jan 2011 23:16:53 -0600
Date: 2011-01-21T23:16:53-06:00	[thread overview]
Message-ID: <ihdp87$r70$1@munin.nbi.dk> (raw)
In-Reply-To: op.vpodylunule2fv@garhos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

"Yannick Duch�ne (Hibou57)" <yannick_duchene@yahoo.fr> wrote in message 
news:op.vpodylunule2fv@garhos...
Le Fri, 21 Jan 2011 20:55:22 +0100, Jeffrey Carter
<spam.jrcarter.not@spam.not.acm.org> a �crit:
>> 2. Protected functions can return indefinite types with actual values 
>> determined by the function; task entries are constrained to the size of 
>> objects provided by the caller.
>Ah, I see. There is indeed nothing like a real function with tasks, and 
>will not allocate on the caller's stack.
>But there is still room to return a reference to some dynamically 
>allocated memory, even indirectly, or no ? (I do not see anything which 
>would prohibit this, although I did not try it)

Right, but remember that the storage pool from which allocated memory comes 
is a global object that requires synchronization. So if you use that sort of 
solution, you have done nothing to solve the synchronization problem (you 
may have moved it to the storage pool, but it is still there).

                        Randy.






  reply	other threads:[~2011-01-22  5:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 18:09 Protected Objects And Many Processors Georg Bauhaus
2011-01-21 19:31 ` Yannick Duchêne (Hibou57)
2011-01-21 20:35   ` Dmitry A. Kazakov
2011-01-21 21:48     ` Yannick Duchêne (Hibou57)
2011-01-21 22:32     ` Yannick Duchêne (Hibou57)
2011-01-24 11:29       ` comp.lang.php
2011-01-24 14:53         ` Dmitry A. Kazakov
2011-01-21 19:55 ` Jeffrey Carter
2011-01-21 20:31   ` Yannick Duchêne (Hibou57)
2011-01-22  5:16     ` Randy Brukardt [this message]
2011-02-06 20:04       ` Yannick Duchêne (Hibou57)
2011-02-06  1:22 ` Gene
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox