2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 08:25:16 +00:00

[#1073] addressed review

This commit is contained in:
Razvan Becheriu
2020-01-27 15:55:03 +02:00
parent 3061507cb9
commit 430cefea69
5 changed files with 38 additions and 1 deletions

View File

@@ -31,6 +31,12 @@ class MySqlLease6Exchange;
/// @brief MySQL Lease Context
///
/// This class stores the thread context for the manager pool.
/// The class is needed by all get/update/delete functions which must use one
/// or more exchanges to perform database operations.
/// Each context provides a set of such exchanges for each thread.
/// The context instances are lazy initialized by the requesting thread by using
/// the manager's createContext function and are destroyed when the manager's
/// pool instance is destroyed.
class MySqlLeaseContext {
public:
@@ -56,6 +62,9 @@ typedef boost::shared_ptr<MySqlLeaseContext> MySqlLeaseContextPtr;
/// @brief MySQL Lease Context Pool
///
/// This class provides a pool of contexts.
/// The manager will use this class to handle avalilable contexts.
/// There is only one ContextPool per manager per back-end, which is created
/// and destroyed by the respective manager factory class.
class MySqlLeaseContextPool {
public: