comp.lang.ada
 help / color / mirror / Atom feed
From: William FRANCK <william.franck@free.fr>
Subject: Re: How to transfer Class-Wide object to a Task ?
Date: Thu, 17 Oct 2019 12:45:00 +0200
Date: 2019-10-17T12:45:00+02:00	[thread overview]
Message-ID: <5da8462c$0$3400$426a34cc@news.free.fr> (raw)
In-Reply-To: qo9e3g$tbs$1@gioia.aioe.org

Ok, Dmitry, I'll investigate this!

btw, I know you're a senior and respectfull Ada developer :-)

William

On 2019-10-17 10:00:16 +0000, Dmitry A. Kazakov said:

> On 2019-10-17 11:28, William FRANCK wrote:
>> On 2019-10-16 20:04:41 +0000, William FRANCK said:
>> I've uploaded my PoC source file on the comp.lang.ada group.
> 
> The code looks wrong. If you use holders it could be like this:
> 
> Reader:
> 
>     loop
>        declare
>           read and create a local object
>        begin
>           accept entry call and in the rendezvous
>              copy object into holder passed to the entry
>        end;
>     end loop;
> 
> Writer:
> 
>     loop
>        call to the reader entry passing local holder
>        write the object held by the holder
>     end loop;
> 
> P.S. Using an access type or reference-counted object would reduce copying.


  reply	other threads:[~2019-10-17 10:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 19:41 How to transfer Class-Wide object to a Task ? William FRANCK
2019-10-14 19:55 ` Shark8
2019-10-14 20:48   ` William FRANCK
2019-10-14 22:01     ` Shark8
2019-10-15  5:13       ` William FRANCK
2019-10-14 19:58 ` Dmitry A. Kazakov
2019-10-14 20:58   ` William FRANCK
2019-10-15  4:40     ` Per Sandberg
2019-10-15  5:40       ` William FRANCK
2019-10-16 20:04       ` William FRANCK
2019-10-16 23:43         ` Anh Vo
2019-10-17  9:28         ` William FRANCK
2019-10-17 10:00           ` Dmitry A. Kazakov
2019-10-17 10:45             ` William FRANCK [this message]
2019-10-15  7:21     ` Dmitry A. Kazakov
2019-10-15 14:31       ` Optikos
2019-10-15 19:41         ` William FRANCK
2019-10-15 20:03           ` Shark8
2019-10-14 20:21 ` William FRANCK
2019-10-14 20:32   ` Dmitry A. Kazakov
2019-10-14 21:04     ` William FRANCK
2019-10-14 21:57   ` Shark8
2019-10-15  5:43     ` William FRANCK
replies disabled

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