Kea 2.5.9
isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc Class Reference

Context RAII Allocator. More...

#include <mysql_host_data_source.h>

Public Member Functions

 MySqlHostContextAlloc (MySqlHostDataSourceImpl &mgr)
 ~MySqlHostContextAlloc ()

Public Attributes

MySqlHostContextPtr ctx_
 The context.

Detailed Description

Context RAII Allocator.

Definition at line 505 of file mysql_host_data_source.h.

Constructor & Destructor Documentation

◆ MySqlHostContextAlloc()

isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc::MySqlHostContextAlloc ( MySqlHostDataSourceImpl mgr)


This constructor takes a context of the pool if one is available or creates a new one.

mgrA parent instance

Definition at line 2825 of file

References isc::dhcp::MySqlHostDataSourceImpl::createContext(), ctx_, isc::util::MultiThreadingMgr::instance(), isc_throw, and isc::dhcp::MySqlHostDataSourceImpl::pool_.

+ Here is the call graph for this function:

◆ ~MySqlHostContextAlloc()

isc::dhcp::MySqlHostDataSource::MySqlHostContextAlloc::~MySqlHostContextAlloc ( )


This destructor puts back the context in the pool.

Definition at line 2850 of file

References isc::util::MultiThreadingMgr::instance().

+ Here is the call graph for this function:

Member Data Documentation

◆ ctx_

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