Public Member Functions | Static Public Attributes | Private Attributes | List of all members
librealsense::small_heap< T, C > Class Template Reference

#include <types.h>

Public Member Functions

T * allocate ()
 
void deallocate (T *item)
 
int get_size () const
 
bool is_empty () const
 
 small_heap ()
 
void stop_allocation ()
 
void wait_until_empty ()
 

Static Public Attributes

static const int CAPACITY = C
 

Private Attributes

buffer [C]
 
std::condition_variable cv
 
bool is_free [C]
 
bool keep_allocating = true
 
std::mutex mutex
 
int size = 0
 

Detailed Description

template<class T, int C>
class librealsense::small_heap< T, C >

Definition at line 1163 of file src/types.h.

Constructor & Destructor Documentation

template<class T, int C>
librealsense::small_heap< T, C >::small_heap ( )
inline

Definition at line 1175 of file src/types.h.

Member Function Documentation

template<class T, int C>
T* librealsense::small_heap< T, C >::allocate ( )
inline

Definition at line 1184 of file src/types.h.

template<class T, int C>
void librealsense::small_heap< T, C >::deallocate ( T *  item)
inline

Definition at line 1201 of file src/types.h.

template<class T, int C>
int librealsense::small_heap< T, C >::get_size ( ) const
inline

Definition at line 1246 of file src/types.h.

template<class T, int C>
bool librealsense::small_heap< T, C >::is_empty ( ) const
inline

Definition at line 1245 of file src/types.h.

template<class T, int C>
void librealsense::small_heap< T, C >::stop_allocation ( )
inline

Definition at line 1225 of file src/types.h.

template<class T, int C>
void librealsense::small_heap< T, C >::wait_until_empty ( )
inline

Definition at line 1231 of file src/types.h.

Member Data Documentation

template<class T, int C>
T librealsense::small_heap< T, C >::buffer[C]
private

Definition at line 1165 of file src/types.h.

template<class T, int C>
const int librealsense::small_heap< T, C >::CAPACITY = C
static

Definition at line 1173 of file src/types.h.

template<class T, int C>
std::condition_variable librealsense::small_heap< T, C >::cv
private

Definition at line 1169 of file src/types.h.

template<class T, int C>
bool librealsense::small_heap< T, C >::is_free[C]
private

Definition at line 1166 of file src/types.h.

template<class T, int C>
bool librealsense::small_heap< T, C >::keep_allocating = true
private

Definition at line 1168 of file src/types.h.

template<class T, int C>
std::mutex librealsense::small_heap< T, C >::mutex
private

Definition at line 1167 of file src/types.h.

template<class T, int C>
int librealsense::small_heap< T, C >::size = 0
private

Definition at line 1170 of file src/types.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:38