2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Free memory allocated by AllocPooled().
9 #include "exec_intern.h"
10 #include <aros/libcall.h>
12 #include <exec/memory.h>
13 #include <proto/exec.h>
16 /*****************************************************************************
20 AROS_LH3(void,FreePooled
,
23 AROS_LHA(APTR
, poolHeader
,A0
),
24 AROS_LHA(APTR
, memory
, A1
),
25 AROS_LHA(ULONG
,memSize
, D0
),
28 struct ExecBase
*, SysBase
, 119, Exec
)
31 Free memory allocated out of a private memory pool.
34 poolHeader - Handle of the memory pool
35 memory - Pointer to the memory
36 memSize - Size of the memory chunk
47 CreatePool(), DeletePool(), AllocPooled()
50 In AROS memory allocated from pool remembers where it came from.
51 Because of this poolHeader is effectively ignored and is present
52 only for compatibility reasons. However, do not rely on this! For
53 other operating systems of Amiga(tm) family this is not true!
55 ******************************************************************************/
59 InternalFreePooled(memory
, memSize
, SysBase
);