|
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 78 of file ThreadSpecificPool.hpp.
|
inline |
Definition at line 81 of file ThreadSpecificPool.hpp.
References m_blockSize, and m_pool.
|
inline |
Definition at line 91 of file ThreadSpecificPool.hpp.
|
inline |
Allocate a block of memory of size ByteSize.
| std::bad_alloc | if memory is exhausted. |
Definition at line 100 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 118 of file ThreadSpecificPool.hpp.
References m_pool, and CellMLToNektar.cellml_metadata::p.
Referenced by Nektar::MemPool::Deallocate().
|
private |
Definition at line 140 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), and ThreadSpecificPool().
|
private |
Definition at line 139 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), Deallocate(), and ThreadSpecificPool().