This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]