#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "blockpool.h"
Go to the source code of this file.
These functions manage the block chain that makes up the memory pool and allocates memory from the individual blocks. The entire pool is freed at once.
The pool allocator was originally written as a low level allocation package. The original package queries the system to find the page size and allocation block size. This version has been simplified, but some of the low level nature remains.
The documentation in this file is formatted for doxygen (see www.doxyeng.org).
You may use this source code without limitation and without fee as long as you include: This software was written and is copyrighted by Ian Kaplan, Bear Products International, www.bearcave.com, 2002.
This software is provided "as is", without any warranty or claim as to its usefulness. Anyone who uses this source code uses it at their own risk. Nor is any support provided by Ian Kaplan and Bear Products International.
Please send any bug fixes or suggested source changes to:
iank@bearcave.com
Definition in file blockpool.cpp.