| M E M _ A L L O C V E C P O O L E D ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_allocvecpooled() - Allocate memory with pool manager.
SYNOPSIS
ptr = mem_allocvecpooled(size, flags);
void *mem_allocvecpooled(ULONG, ULONG);
FUNCTION
The function at the outside resembles 'AllocVec()' very
much, but internally uses automatically adjusted pools.
It is very good solution if you need a lot of tiny mem.
allocs so that memory fragmentation is at the very sane
level.
INPUTS
size - Amount of memory to allocate.
flags - Standard 'AllocMem()' flags.
RETURNS
Pointer to freshly allocated memory region or NULL if
unsuccessful.
BASES
SysBase
NOTES
Please note, this func. distinguishes between MEMF_CHIP
and MEMF_FAST memory allocations only! On a system that
has chip mem. only flags: MEMF_ANY, MEMF_PUBLIC will use
node that is responsible for fast memory allocations!
MEMF_CLEAR works of course and may be applied per each
memory allocation.
This function does simple memory tracking so mem. leaks
can be easily detected with 'mem_setvecpooled()'.
See source code for a default pool values.
SEE ALSO
mem_freevecpooled(), mem_setvecpooled()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |