Pottu
Public Types | Public Member Functions | Public Attributes | List of all members
pottu::SharedResourcePool< Ev > Class Template Reference

Pool for SharedResource derived objects. More...

#include <SharedResourcePool.hpp>

Public Types

using resource_t = Ev
 
using resource_deleter_t = PooledResourceDeleter< SharedResourcePool< Ev > >
 
using logical_event_handle_t = SharedResourceHandle< Ev, resource_deleter_t >
 

Public Member Functions

 SharedResourcePool ()
 Constructor.
 
 ~SharedResourcePool ()
 Destructor.
 
 SharedResourcePool (const SharedResourcePool &o)=delete
 
 SharedResourcePool (SharedResourcePool &&o)=delete
 
logical_event_handle_t get () noexcept
 

Public Attributes

std::vector< Ev * > _pool
 
size_t _eventsAllocated {0}
 
size_t _eventsGiven {0}
 
size_t _eventsReturned {0}
 

Detailed Description

template<class Ev>
class pottu::SharedResourcePool< Ev >

Pool for SharedResource derived objects.

NOTE! There are no thread synchronization mechanism. Threads using these resources must be synchronized by user.


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