Kea 2.6.2
isc::dhcp::PgSqlHostDataSource::PgSqlHostContextAlloc Class Reference

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.
 

Detailed Description

Context RAII Allocator.

Definition at line 557 of file pgsql_host_data_source.h.

Constructor & Destructor Documentation

◆ PgSqlHostContextAlloc()

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.

Parameters
mgrA parent instance

Definition at line 2234 of file pgsql_host_data_source.cc.

References ctx_, isc::util::MultiThreadingMgr::instance(), and isc_throw.

+ Here is the call graph for this function:

◆ ~PgSqlHostContextAlloc()

isc::dhcp::PgSqlHostDataSource::PgSqlHostContextAlloc::~PgSqlHostContextAlloc ( )

Destructor.

This destructor puts back the context in the pool.

Definition at line 2259 of file pgsql_host_data_source.cc.

References ctx_, and 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: