| M E M _ A L L O C L F V E C ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_alloclfvec() - Allocate memory in a leak-free way.
SYNOPSIS
ptr = mem_alloclfvec(size, flags);
void *mem_alloclfvec(ULONG, ULONG);
FUNCTION
This is leak-free memory allocator. This means that no
memory leaks are possible after program has ended even
though no 'mem_freelfvec()' was called.
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
This function uses Hot Vector Array subsystem directly.
No auxiliary memory allocations are being performed.
Caution! Allocations take a little more memory that it
was actually requested!
Whenever you need to allocate memory to a remote task,
do not access 'ptr' without checking if that memory is
still available with 'mem_checklfvec()'!
Do not allocate memory with this routine and grant the
pointer to other tasks if you know that they cannot do
the memory validity checks! Memory will become invalid
upon death of your task or process!
SEE ALSO
mem_freelfvec(), mem_checklfvec()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |