1#ifndef PACSIMDEADTIME_HPP
2#define PACSIMDEADTIME_HPP
14 std::lock_guard<std::mutex> l(
_mutex);
22 std::lock_guard<std::mutex> l(
_mutex);
33 std::lock_guard<std::mutex> l(
_mutex);
43 std::lock_guard<std::mutex> l(
_mutex);
47 if (time >= (this->
times.front() + this->deadTime))
57 std::lock_guard<std::mutex> l(
_mutex);
59 this->
times.push(currTime);
std::queue< T > deadTimeQueue
DeadTime(const DeadTime &in)
DeadTime(double deadtime)
std::queue< double > times
bool availableDeadTime(double time)
DeadTime & operator=(const DeadTime &in)
void addVal(T val, double currTime)
void updateDeadTime(double time)