|
Nektar++
|
#include <ThreadSpecificPool.hpp>
Public Member Functions | |
| ThreadSpecificPool (size_t ByteSize) | |
| ~ThreadSpecificPool () | |
| void * | Allocate () |
| Allocate a block of memory of size ByteSize. | |
| void | Deallocate (const void *p) |
| Deallocate memory claimed by an earlier call to allocate. | |
Private Attributes | |
| boost::pool * | m_pool |
| size_t | m_blockSize |
| boost::mutex | m_mutex |
Definition at line 79 of file ThreadSpecificPool.hpp.
|
inline |
Definition at line 82 of file ThreadSpecificPool.hpp.
References m_blockSize, and m_pool.
|
inline |
Definition at line 92 of file ThreadSpecificPool.hpp.
|
inline |
Allocate a block of memory of size ByteSize.
| std::bad_alloc | if memory is exhausted. |
Definition at line 101 of file ThreadSpecificPool.hpp.
References m_blockSize, m_mutex, and m_pool.
Referenced by Nektar::MemPool::Allocate().
Deallocate memory claimed by an earlier call to allocate.
Definition at line 117 of file ThreadSpecificPool.hpp.
References m_mutex, and m_pool.
Referenced by Nektar::MemPool::Deallocate().
|
private |
Definition at line 137 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), and ThreadSpecificPool().
|
private |
Definition at line 138 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), and Deallocate().
|
private |
Definition at line 136 of file ThreadSpecificPool.hpp.
Referenced by Allocate(), Deallocate(), and ThreadSpecificPool().
1.8.1.2