comp.lang.ada
 help / color / mirror / Atom feed
* How to transfer Class-Wide object to a Task ?
@ 2019-10-14 19:41 William FRANCK
  2019-10-14 19:55 ` Shark8
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: William FRANCK @ 2019-10-14 19:41 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-10-17 10:45 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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