|
COMBINATORIAL_BLAS
1.3
|
#include <MemoryPool.h>
Public Member Functions | |
| MemoryPool (void *m_beg, size_t m_size) | |
| void * | alloc (size_t size) |
| void | dealloc (void *base, size_t size) |
Friends | |
| ofstream & | operator<< (ofstream &outfile, const MemoryPool &mpool) |
| Dump the contents of the pinned memory. | |
Definition at line 48 of file MemoryPool.h.
| MemoryPool::MemoryPool | ( | void * | m_beg, |
| size_t | m_size | ||
| ) |
Definition at line 3 of file MemoryPool.cpp.
| void * MemoryPool::alloc | ( | size_t | size | ) |
Definition at line 9 of file MemoryPool.cpp.
| void MemoryPool::dealloc | ( | void * | base, |
| size_t | size | ||
| ) |
defragment on the fly by attaching to the previous chunk if prevchunk.endaddr equals newitem.beginaddr, or by attaching to the next available chunk if newitem.endaddr equals nextchunk.begaddr
check the next chunk to see if we perfectly fill the hole
Insert x before pos: 'iterator insert(iterator pos, const T& x)'
Definition at line 27 of file MemoryPool.cpp.
|
friend |
Dump the contents of the pinned memory.
Definition at line 107 of file MemoryPool.cpp.
1.8.1.1