![]() |
Kea 2.7.1
|
Context RAII Allocator. More...
#include <pgsql_host_data_source.h>
Public Member Functions | |
PgSqlHostContextAlloc (PgSqlHostDataSourceImpl &mgr) | |
Constructor. | |
~PgSqlHostContextAlloc () | |
Destructor. | |
Public Attributes | |
PgSqlHostContextPtr | ctx_ |
The context. | |
Context RAII Allocator.
Definition at line 557 of file pgsql_host_data_source.h.
isc::dhcp::PgSqlHostDataSource::PgSqlHostContextAlloc::PgSqlHostContextAlloc | ( | PgSqlHostDataSourceImpl & | mgr | ) |
Constructor.
This constructor takes a context of the pool if one is available or creates a new one.
mgr | A parent instance |
Definition at line 2233 of file pgsql_host_data_source.cc.
References isc::dhcp::PgSqlHostDataSourceImpl::createContext(), ctx_, isc::util::MultiThreadingMgr::instance(), isc_throw, and isc::dhcp::PgSqlHostDataSourceImpl::pool_.
isc::dhcp::PgSqlHostDataSource::PgSqlHostContextAlloc::~PgSqlHostContextAlloc | ( | ) |
Destructor.
This destructor puts back the context in the pool.
Definition at line 2258 of file pgsql_host_data_source.cc.
References isc::util::MultiThreadingMgr::instance().
PgSqlHostContextPtr isc::dhcp::PgSqlHostDataSource::PgSqlHostContextAlloc::ctx_ |
The context.
Definition at line 574 of file pgsql_host_data_source.h.
Referenced by PgSqlHostContextAlloc(), and isc::dhcp::PgSqlHostDataSource::update().