#include <folly/executors/ThreadedRepeatingFunctionRunner.h>
#include <iostream>
#include <folly/system/ThreadName.h>
#include <glog/logging.h>
namespace folly {
ThreadedRepeatingFunctionRunner::ThreadedRepeatingFunctionRunner() = default;
ThreadedRepeatingFunctionRunner::~ThreadedRepeatingFunctionRunner() { … }
void ThreadedRepeatingFunctionRunner::stop() { … }
bool ThreadedRepeatingFunctionRunner::stopImpl() { … }
void ThreadedRepeatingFunctionRunner::add(
std::string name, RepeatingFn fn, std::chrono::milliseconds initialSleep) { … }
bool ThreadedRepeatingFunctionRunner::waitFor(
std::chrono::milliseconds duration) noexcept { … }
void ThreadedRepeatingFunctionRunner::executeInLoop(
RepeatingFn fn, std::chrono::milliseconds initialSleep) noexcept { … }
}