Ardour  8.7-15-gadf511264b
PBD::MultiAllocSingleReleasePool Class Reference

#include <pool.h>

Inheritance diagram for PBD::MultiAllocSingleReleasePool:
[legend]

Public Member Functions

 MultiAllocSingleReleasePool (std::string name, unsigned long item_size, unsigned long nitems)
 
 ~MultiAllocSingleReleasePool ()
 
virtual void * alloc ()
 
virtual void release (void *)
 
- Public Member Functions inherited from PBD::Pool
 Pool (std::string name, unsigned long item_size, unsigned long nitems, PoolDumpCallback cb=NULL)
 
virtual ~Pool ()
 
std::string name () const
 
guint available () const
 
guint used () const
 
guint total () const
 

Private Attributes

Glib::Threads::Mutex m_lock
 

Additional Inherited Members

- Protected Attributes inherited from PBD::Pool
PBD::RingBuffer< void * > free_list
 a list of pointers to free items within block More...
 
std::string _name
 

Detailed Description

Definition at line 92 of file pool.h.

Constructor & Destructor Documentation

◆ MultiAllocSingleReleasePool()

PBD::MultiAllocSingleReleasePool::MultiAllocSingleReleasePool ( std::string  name,
unsigned long  item_size,
unsigned long  nitems 
)

◆ ~MultiAllocSingleReleasePool()

PBD::MultiAllocSingleReleasePool::~MultiAllocSingleReleasePool ( )

Member Function Documentation

◆ alloc()

virtual void* PBD::MultiAllocSingleReleasePool::alloc ( )
virtual

Reimplemented from PBD::Pool.

◆ release()

virtual void PBD::MultiAllocSingleReleasePool::release ( void *  )
virtual

Reimplemented from PBD::Pool.

Member Data Documentation

◆ m_lock

Glib::Threads::Mutex PBD::MultiAllocSingleReleasePool::m_lock
private

Definition at line 102 of file pool.h.


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