10#include <boost/date_time/posix_time/posix_time.hpp>
25 if (last_time == boost::posix_time::not_a_date_time) {
boost::posix_time::ptime last_allocated_time_
Timestamp indicating when a lease has been last allocated from the subnet.
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.
void setLastAllocatedTime(boost::posix_time::ptime last_time=boost::posix_time::not_a_date_time)
Set last allocated time.
SubnetSflqAllocationState()
Constructor.
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.