| M E M _ F R E E V E C P O O L E D ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MEM_#?
----------------------------------------------------------------------------
NAME
mem_freevecpooled() - Deallocate memory with pool man.
SYNOPSIS
mem_freevecpooled(ptr);
void mem_freevecpooled(void *);
FUNCTION
Frees the mem. prev. alloc. with 'mem_allocvecpooled()'.
INPUTS
ptr - Pointer as obtained with 'mem_allocvecpooled()'.
RETURNS
No output.
BASES
SysBase
NOTES
With the help of 'mem_setvecpooled()' whole pool can be
deallocated without the need of using this routine.
Never pass 'AllocMem()'ed/'AllocVec()'ed pointers to this
function!
SEE ALSO
mem_allocvecpooled(), mem_setvecpooled()
EXAMPLE
...
UBYTE *bptr;
ULONG *lptr;
if ((bptr = mem_allocvecpooled(4096, MEMF_PUBLIC)))
{
if ((lptr = mem_allocvecpooled(4096 * 4, MEMF_PUBLIC)))
{
...
/* mem_freevecpooled(lptr) */
}
/* mem_freevecpooled(bptr) */
}
/*
* Deallocate memory of those two allocs in one go
*/
mem_setvecpooled(MEMF_PUBLIC, QDEV_MEM_XXXVPI_FREE,
QDEV_MEM_XXXVPV_NOCH);
BUGS
None known.
----------------------------------------------------------------------------
| |
| |