comp.lang.ada
 help / color / mirror / Atom feed
From: Brad Moore <bmoore.ada@gmail.com>
Subject: Re: How to do multiple instances of a generic packages in automated way. (using ravenscar profile)
Date: Mon, 11 Apr 2016 22:19:50 -0700 (PDT)
Date: 2016-04-11T22:19:50-07:00	[thread overview]
Message-ID: <42af8314-355d-45d3-a5b2-565f537c5e76@googlegroups.com> (raw)
In-Reply-To: <abfecca3-c323-4530-92de-420c68004fbf@googlegroups.com>

On Monday, April 11, 2016 at 11:23:46 AM UTC-6, Daniel Norber wrote:
> > What was presented is a protected type specification. You had to provide the 
> > body, and clearly you made an error in so doing. The error msg gives you the 
> > information you need to correct this error.

You might want to also have a look at the Dequesterity Buffers.

https://sourceforge.net/projects/dequesterity/

The buffer types are composable, meaning you can use lower level implementations to create higher level buffer types.

In the Ravenscar buffers, the size of the buffer is a discriminant for a protected type, so it sounds like what you are trying to do.

Basically, you only need to instantiate the generics once, but can then
create as many objects of that instance as you need.

I have implemented various forms of buffers, including different Ravenscar generic buffers. Some of the Ravenscar specific buffer generics include; 
(Ravenscar_Bounded, 
 Ravenscar_Persistent, 
 Ravenscar_Segmented, 
 Ravenscar_Unbounded,
 Ravenscar_Bounded (Indefinite),
 Ravenscar_Unbounded (Indefinite),
 Ravenscar_Bounded_Priority, 
 Ravenscar_Persistent_Priority, 
 Ravenscar_Segmented_Priority, 
 Ravenscar_Unbounded_Priority
 Ravenscar_Bounded_Priority (Indefinite),
 Ravenscar_Unbounded_Priority (Indefinite),
 Ravenscar_Bounded Stream Buffer,
 Ravenscar_Unbounded Stream Buffer,
 Ravenscar_Persistent Stream Buffer,
 Ravenscar_Segmented Stream Buffer)

Brad

  parent reply	other threads:[~2016-04-12  5:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05 17:09 How to do multiple instances of a generic packages in automated way. (using ravenscar profile) danielnorberto
2016-04-05 17:39 ` Jeffrey R. Carter
2016-04-05 19:39   ` Simon Wright
2016-04-07 12:05 ` danielnorberto
2016-04-07 12:36   ` G.B.
2016-04-11  9:14     ` Daniel Norber
2016-04-11 13:04       ` Shark8
2016-04-11 17:25         ` Daniel Norber
2016-04-11 15:58       ` Anh Vo
2016-04-11 17:21         ` Daniel Norber
2016-04-11 17:26           ` Anh Vo
2016-04-11 16:59       ` Jeffrey R. Carter
2016-04-11 17:23         ` Daniel Norber
2016-04-11 17:27           ` Jeffrey R. Carter
2016-04-12  5:19           ` Brad Moore [this message]
2016-04-26 15:08             ` Daniel Norber
2016-05-05 21:01 ` rieachus
replies disabled

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