Public Member Functions | Private Attributes | List of all members
MemoryPool Class Reference

#include <MemoryPool.h>

Public Member Functions

unsigned char * getNextMem ()
 
 MemoryPool ()
 
 MemoryPool (const MemoryPool &obj)
 
MemoryPooloperator= (const MemoryPool &&obj)
 
void returnMem (unsigned char *t_mem)
 
 ~MemoryPool ()
 

Private Attributes

std::mutex m_mutex
 
std::queue< unsigned char * > m_pool
 

Detailed Description

Definition at line 16 of file MemoryPool.h.

Constructor & Destructor Documentation

MemoryPool::MemoryPool ( )
inline

Definition at line 20 of file MemoryPool.h.

MemoryPool::MemoryPool ( const MemoryPool obj)
inline

Definition at line 32 of file MemoryPool.h.

MemoryPool::~MemoryPool ( )
inline

Definition at line 76 of file MemoryPool.h.

Member Function Documentation

unsigned char* MemoryPool::getNextMem ( )
inline

Definition at line 43 of file MemoryPool.h.

MemoryPool& MemoryPool::operator= ( const MemoryPool &&  obj)
inline

Definition at line 37 of file MemoryPool.h.

void MemoryPool::returnMem ( unsigned char *  t_mem)
inline

Definition at line 61 of file MemoryPool.h.

Member Data Documentation

std::mutex MemoryPool::m_mutex
private

Definition at line 97 of file MemoryPool.h.

std::queue<unsigned char*> MemoryPool::m_pool
private

Definition at line 96 of file MemoryPool.h.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:32