comp.lang.ada
 help / color / mirror / Atom feed
From: nebbe@lglsun.epfl.ch (Robb Nebbe)
Subject: Re: Multithreading
Date: 25 Nov 1994 16:22:59 GMT
Date: 1994-11-25T16:22:59+00:00	[thread overview]
Message-ID: <1994Nov25.171914@lglsun.epfl.ch> (raw)
In-Reply-To: 3avas0$inu@Starbase.NeoSoft.COM

In article <3avas0$inu@Starbase.NeoSoft.COM>, dweller@Starbase.NeoSoft.COM (David Weller) writes:
|> 
|> Offhand I'd say that effect could be achieved by nesting a protected
|> type instance inside a Controlled type:
|> 
|> 	protected type Multi_Thread_Data is ...
|> 
|> 	type GC_Item is new Ada.Finalization.Controlled with record
|> 	   Hidden : Multi_Thread_Data;
|> 	end record;
|> 

I would do it the other way around. I would put a protected type around
a controlled type. I can't come up with a good justification but it
seems more natural to me.

- Robb Nebbe




  reply	other threads:[~1994-11-25 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CyyHLD.BIo@world.std.com>
     [not found] ` <hbakerCyyn4I.8p0@netcom.com>
     [not found]   ` <GWYANT.94Nov10133254@cloyd.east.sun.com>
     [not found]     ` <hbakerCz44Jp.H8y@netcom.com>
     [not found]       ` <CzAH3B.CtI@ois.com>
1994-11-15 15:20         ` Multithreading Patrick D. Logan
1994-11-18  2:43           ` Multithreading David Weller
1994-11-19 15:24             ` Multithreading Patrick D. Logan
1994-11-23 12:00               ` Multithreading David Weller
1994-11-25 16:22                 ` Robb Nebbe [this message]
1994-11-18 12:59           ` Multithreading Ted Dennison
1994-11-23 16:20             ` Multithreading Scott Leschke
1994-11-29 13:19 Multithreading Robert Dewar
replies disabled

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