MySQL 8.4.2
Source Code Documentation
server_mock::DukHeapPool Class Reference

Public Member Functions

std::unique_ptr< DukHeapget (const std::string &filename, std::vector< std::string > module_prefixes, std::map< std::string, std::function< std::string()> > session_data, std::shared_ptr< MockServerGlobalScope > shared_globals)
 
void release (std::unique_ptr< DukHeap > heap)
 

Static Public Member Functions

static DukHeapPoolinstance ()
 

Private Member Functions

 DukHeapPool ()=default
 

Private Attributes

std::list< std::unique_ptr< DukHeap > > pool_
 
std::mutex pool_mtx_
 

Static Private Attributes

static DukHeapPool instance_
 

Constructor & Destructor Documentation

◆ DukHeapPool()

server_mock::DukHeapPool::DukHeapPool ( )
privatedefault

Member Function Documentation

◆ get()

std::unique_ptr< DukHeap > server_mock::DukHeapPool::get ( const std::string &  filename,
std::vector< std::string >  module_prefixes,
std::map< std::string, std::function< std::string()> >  session_data,
std::shared_ptr< MockServerGlobalScope shared_globals 
)
inline

◆ instance()

static DukHeapPool * server_mock::DukHeapPool::instance ( )
inlinestatic

◆ release()

void server_mock::DukHeapPool::release ( std::unique_ptr< DukHeap heap)
inline

Member Data Documentation

◆ instance_

DukHeapPool server_mock::DukHeapPool::instance_
staticprivate

◆ pool_

std::list<std::unique_ptr<DukHeap> > server_mock::DukHeapPool::pool_
private

◆ pool_mtx_

std::mutex server_mock::DukHeapPool::pool_mtx_
private

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