comp.lang.ada
 help / color / mirror / Atom feed
From: Colin Paul Gloster <Colin_Paul_Gloster@ACM.org>
Subject: Re: Ada.Containers and Storage_Pools
Date: Wed, 9 Aug 2006 15:27:23 +0200
Date: 2006-08-09T13:27:23+00:00	[thread overview]
Message-ID: <20060809150954.I84175@docenti.ing.unipi.it> (raw)
In-Reply-To: <1155125040.715167.132300@m73g2000cwd.googlegroups.com>

On Wed, 9 Aug 2006 Marcin Simonides posted:

"[..]

The problem I'm facing (and that is certain to show up in other parts
of our project) is that I need to limit the size of cache in memory. To
do this I would need to be able to have the containers allocate their
nodes from a user-specified storage pool with some limiting mechanism
(I already have such a pool and use it for objects that are allocated
by my code).

So I have a question: is there a possibility, either in GNAT 3.4.5 or
in Ada 2005, to specify a custom storage pool for use by containers? If
not, is there any other solution to limiting the size of memory used by
containers?

[..]"

Perhaps I have failed to notice something obvious and important but could 
you use Storage_Size? From 13.11(15) in the Ada 2005 draft standard,
http://www.adaic.org/standards/05rm/html/RM-13-11.html#I4699
: "Storage_Size [..] may be specified for a non-derived 
access-to-object type via an attribute_definition_clause; [..]".

Regards,
Colin Paul Gloster



  reply	other threads:[~2006-08-09 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-09 12:04 Ada.Containers and Storage_Pools msimonides
2006-08-09 13:27 ` Colin Paul Gloster [this message]
2006-08-09 16:16   ` Matthew Heaney
2006-08-09 16:05 ` Martin Krischik
2006-08-09 16:13 ` Matthew Heaney
2006-08-10  7:01   ` msimonides
2006-08-10 14:16     ` Matthew Heaney
2006-08-11 18:22       ` msimonides
replies disabled

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