From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to transfer Class-Wide object to a Task ?
Date: Thu, 17 Oct 2019 12:00:16 +0200
Date: 2019-10-17T12:00:16+02:00 [thread overview]
Message-ID: <qo9e3g$tbs$1@gioia.aioe.org> (raw)
In-Reply-To: 5da83417$0$31419$426a34cc@news.free.fr
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.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2019-10-17 10:00 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 [this message]
2019-10-17 10:45 ` William FRANCK
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