comp.lang.ada
 help / color / mirror / Atom feed
From: William FRANCK <william.franck@free.fr>
Subject: How to transfer Class-Wide object to a Task ?
Date: Mon, 14 Oct 2019 21:41:53 +0200
Date: 2019-10-14T21:41:54+02:00	[thread overview]
Message-ID: <5da4cf81$0$20312$426a74cc@news.free.fr> (raw)

Hey all !
Here is a nice issue I have with Ada (GNAT 2012) when trying to do OO 
dispatching with streams in different tasks ...

Here it is :
I'd like to get from a task RdV (Entry-Access) an object which could be 
any subclass of a root'Class, and pass it to another task

Context : read (Root'Class'Input() ) tagged records from an input 
stream, and send them to anther task which will write 
(Root'Class'Output() ) the given records to another output stream.

I'm stuck with task memory isolation with does NOT allow to pass any 
access object to a Root'Class.

Should I try to use a protected object ?
(not shore this solves the passing of a Class-wide object ...)

Thanks for your feed-back,
William

             reply	other threads:[~2019-10-14 19:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 19:41 William FRANCK [this message]
2019-10-14 19:55 ` How to transfer Class-Wide object to a Task ? 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
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