10#include <boost/date_time/posix_time/posix_time.hpp>
22boost::posix_time::ptime
Base class for representing allocation state in pools and subnets.
boost::posix_time::ptime last_allocated_time_
Timestamp indicating when a lease has been last allocated from the subnet.
boost::posix_time::ptime getLastAllocatedTime() const
Returns last allocation time for the specified lease type.
boost::scoped_ptr< std::mutex > mutex_
Mutex used for thread-safe access to the state members.
SubnetAllocationState()
Constructor.
void setCurrentAllocatedTimeInternal()
Sets the last allocation time to current.
Defines the logger used by the top-level component of kea-lfc.
RAII lock object to protect the code in the same scope with a mutex.