wavelength 1.0.0
Loading...
Searching...
No Matches
PoolAlloc.h
Go to the documentation of this file.
1#pragma once
2
3#include "utl/Data.h"
4#include "utl/PrnStream.h"
5
11extern int gPoolChunkBytes;
12
22
32void *PoolChunkAlloc(int bytes);
33
44void *PoolAlloc(int classSize, int reqSize, const char *name, int unused);
45
53void PoolFree(int size, void *mem);
54
61void PoolReport(PrnStream &stream);
62
71void *_PoolAlloc(int size, const char *name);
72
80void _PoolFree(int size, void *mem);
void * PoolChunkAlloc(int bytes)
Carve memory for pool nodes from the current chunk, taking a new chunk when it is too small.
void _PoolFree(int size, void *mem)
Free memory from _PoolAlloc().
int gPoolChunkBytes
Bytes taken through PoolChunkAlloc().
void PoolAllocInit(DataArray *config)
Read the chunk sizes of the pools from the pool configuration.
void PoolReport(PrnStream &stream)
Print the use of the pools.
void PoolFree(int size, void *mem)
Return an object to the pools.
void * PoolAlloc(int classSize, int reqSize, const char *name, int unused)
Allocate an object from the pools.
void * _PoolAlloc(int size, const char *name)
Allocate from the pools, or from the current heap when the size exceeds 128 bytes.
Reference-counted array of script data nodes.
Definition dataarray.h:20
Text output stream.
Definition prnstream.h:16