1 #ifndef ros1_cpp_template_ATOMIC_FIBONACCI_HPP_ 2 #define ros1_cpp_template_ATOMIC_FIBONACCI_HPP_ 29 const int& max_number = 256,
const std::string& name =
"");
40 virtual int nextAndLog(
const std::string& log_prefix =
"");
60 virtual void setMax(
const int& value);
int last_number_
Last Fibonacci number.
std::shared_ptr< AtomicFibonacci > AtomicFibonacciPtr
virtual int nextAndLog(const std::string &log_prefix="")
virtual void setMax(const int &value)
int current_number_
Current Fibonacci number.
std::mutex mutex_
Mutex for locking.
virtual ~AtomicFibonacci()
std::atomic< int > max_number_
Max Fibonacci number before reseting the sequence.
std::string log_prefix_
Log prefix.