mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
[#1852] default ParkingInfo constructor sets refcount_ to 0
This commit is contained in:
committed by
Tomek Mrugalski
parent
7ae26127a6
commit
d2ce8d63a3
@@ -209,14 +209,19 @@ public:
|
|||||||
|
|
||||||
/// @brief Holds information about parked object.
|
/// @brief Holds information about parked object.
|
||||||
struct ParkingInfo {
|
struct ParkingInfo {
|
||||||
boost::any parked_object_; ///< parked object
|
/// @brief The parked object.
|
||||||
std::function<void()> unpark_callback_; ///< pointer to the callback
|
boost::any parked_object_;
|
||||||
int refcount_; ///< current reference count
|
|
||||||
|
/// @brief The pointer to callback.
|
||||||
|
std::function<void()> unpark_callback_;
|
||||||
|
|
||||||
|
/// @brief The current reference count.
|
||||||
|
int refcount_;
|
||||||
|
|
||||||
/// @brief Constructor.
|
/// @brief Constructor.
|
||||||
///
|
///
|
||||||
/// Default constructor.
|
/// Default constructor.
|
||||||
ParkingInfo() {};
|
ParkingInfo() : refcount_(0) {};
|
||||||
|
|
||||||
/// @brief Constructor.
|
/// @brief Constructor.
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user