comp.lang.ada
 help / color / mirror / Atom feed
* Post hoc making a type thread safe
@ 2008-06-10 18:36 Alex R. Mosteo
  2008-06-10 19:42 ` Dmitry A. Kazakov
  2008-06-11  0:35 ` tmoran
  0 siblings, 2 replies; 4+ messages in thread
From: Alex R. Mosteo @ 2008-06-10 18:36 UTC (permalink / raw)


Hello,

I have a rather large object (in terms of # of subprograms) which is standard
tagged record. I want to use it in a thread safe manner, and I wonder if
there's some better solution than proxying everything with a protected type.
I'm not sure if some new 2005 feature can help in this regard.

Any gain would be nice; for example, is there some way of using renames to
provide the bodies of the protected object using the original object ones? I
can't think of a way so I ask in case I'm missing something... Also, I have
access to both public, private and body of the original type, in case this is
of use.

In practice I'm looking for something equivalent to:

--  Not Ada
--  protected type Safe is new Unsafe with null record;

Thanks in advance,

Alex.



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

end of thread, other threads:[~2008-06-11 11:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 18:36 Post hoc making a type thread safe Alex R. Mosteo
2008-06-10 19:42 ` Dmitry A. Kazakov
2008-06-11 11:35   ` Alex R. Mosteo
2008-06-11  0:35 ` tmoran

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