Ardour  9.0-pre0-582-g084a23a80d
PBD::SingleAllocMultiReleasePool Class Reference

#include <pool.h>

Inheritance diagram for PBD::SingleAllocMultiReleasePool:
[legend]

Public Member Functions

 SingleAllocMultiReleasePool (std::string name, unsigned long item_size, unsigned long nitems)
 
 ~SingleAllocMultiReleasePool ()
 
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 78 of file pool.h.

Constructor & Destructor Documentation

◆ SingleAllocMultiReleasePool()

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

◆ ~SingleAllocMultiReleasePool()

PBD::SingleAllocMultiReleasePool::~SingleAllocMultiReleasePool ( )

Member Function Documentation

◆ alloc()

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

Reimplemented from PBD::Pool.

◆ release()

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

Reimplemented from PBD::Pool.

Member Data Documentation

◆ m_lock

Glib::Threads::Mutex PBD::SingleAllocMultiReleasePool::m_lock
private

Definition at line 88 of file pool.h.


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