From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: GNAT's Protected Objects
Date: Tue, 09 Nov 2010 09:21:24 -0500
Date: 2010-11-09T09:21:24-05:00 [thread overview]
Message-ID: <wcc7hgmk26z.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: iba4im$dmu$1@tornado.tornevall.net
Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org> writes:
> On 11/08/2010 03:43 PM, Robert A Duff wrote:
>>
>> By the way, I don't see the point of the Create_Tasks block.
>> Seems like it's not needed.
>
> I guess not, since the function won't return until the tasks
> complete. It's a general construct I use to wait for a group of tasks to
> complete before doing something else.
No, as Egil H�vik pointed out, I was wrong, because
the return expression will be evaluated before
awaiting dependent tasks. Your code was right in
the first place!
He also made a good suggestion about cache (false sharing).
- Bob
next prev parent reply other threads:[~2010-11-09 14:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 20:34 GNAT's Protected Objects Jeffrey Carter
2010-11-08 21:38 ` Anh Vo
2010-11-08 22:32 ` Jeffrey Carter
2010-11-08 22:43 ` Robert A Duff
2010-11-09 0:27 ` Jeffrey Carter
2010-11-09 14:21 ` Robert A Duff [this message]
2010-11-09 18:23 ` Jeffrey Carter
2010-11-09 10:05 ` Egil Høvik
2010-11-09 1:50 ` Anh Vo
2010-11-09 3:14 ` Jeffrey Carter
2010-11-09 2:03 ` Peter C. Chapin
2010-11-09 10:18 ` Egil Høvik
2010-11-09 11:17 ` Julian Leyh
2010-11-09 18:22 ` Jeffrey Carter
[not found] ` <s5GdnRvDRfR6-0XRnZ2dnUVZ_hOdnZ2d@earthlink.com>
2010-11-08 22:41 ` Jeffrey Carter
2010-11-09 10:36 ` Maciej Sobczak
2010-11-24 7:08 ` Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox