From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,52d73309a1322d28 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-01 00:03:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!eusc.inter.net!news.eusc.inter.net!boavista.snafu.de!news From: Michael Erdmann Newsgroups: comp.lang.ada Subject: Re: Q:Usage of storage Pools Date: Sun, 01 Jun 2003 08:55:29 +0200 Organization: [Posted via] Inter.net Germany GmbH Message-ID: <1kkoq-2ka.ln1@boavista.snafu.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.eusc.inter.net 1054450980 23729 213.73.71.222 (1 Jun 2003 07:03:00 GMT) X-Complaints-To: abuse@eusc.inter.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en In-Reply-To: Xref: archiver1.google.com comp.lang.ada:38270 Date: 2003-06-01T08:55:29+02:00 List-Id: Robert A Duff wrote: > Michael Erdmann writes: > > >>I simply want to store a list nodes of one kine in a special >>memory pool with special features. > > > You mean, like a free list? No, the list structure you have seen is something which i like to allocate in the pool. > Maybe you shouldn't use storage pools at all. The reason why i am using a pool is because i like to control the behaviour of the pool it self. > Just declare a function in the generic that returns an element > of the free list? The idea is to achieve some kind of object persistency by writing out all objects allocated in the pool when the program is forced to terminate. Additionally the pool is going to be located in a certain pice of shared memory. Since the pool knows the sturcture of the objects to be stored there he is able to derefernce the pointers like Next when wiriting it into a file. Michael > > - Bob