This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
realloc for variably-sized mempools?
- From: Mark Grosberg <mark at nolab dot conman dot org>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 8 Jul 2003 23:33:32 -0400 (EDT)
- Subject: [ECOS] realloc for variably-sized mempools?
Hello all,
I have the need to reallocate (grow) blocks of memory allocated from a
variably-sized pool (created with cyg_mempool_var_create).
There seems to be no published API to do this? I could make a
Cyg_Mempool_Variable object and call its methods (which do support
alloc_resize), but this seems like it is an internal object.
What is the best way to solve this?
I would rather not use realloc() for various reasons (lock contention,
avoiding memory starvation, etc).
Thanks,
Mark G.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss