Nektar++
|
#include <ThreadSpecificPool.hpp>
Public Member Functions | |
ThreadSpecificPool (size_t ByteSize) | |
~ThreadSpecificPool () | |
void * | Allocate () |
Allocate a block of memory of size ByteSize. More... | |
void | Deallocate (const void *p) |
Deallocate memory claimed by an earlier call to allocate. More... | |
Private Attributes | |
boost::pool * | m_pool |
size_t | m_blockSize |
Definition at line 85 of file ThreadSpecificPool.hpp.
|
inline |
Definition at line 88 of file ThreadSpecificPool.hpp.
References m_blockSize, and m_pool.
|
inline |
Definition at line 96 of file ThreadSpecificPool.hpp.
References m_pool.
|
inline |
Allocate a block of memory of size ByteSize.
std::bad_alloc | if memory is exhausted. |
Definition at line 104 of file ThreadSpecificPool.hpp.
References m_blockSize, and m_pool.
Referenced by Nektar::MemPool::Allocate().
Deallocate memory claimed by an earlier call to allocate.
Definition at line 122 of file ThreadSpecificPool.hpp.
References m_pool, and CellMLToNektar.cellml_metadata::p.
Referenced by Nektar::MemPool::Deallocate().
|
private |
Definition at line 143 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), and ThreadSpecificPool().
|
private |
Definition at line 142 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), Deallocate(), ThreadSpecificPool(), and ~ThreadSpecificPool().