18 #include <condition_variable> 23 namespace perception {
32 void Bind(
const std::function<
bool()> &func);
51 std::unique_ptr<std::thread> thread_ptr_;
53 std::condition_variable condition_;
55 bool work_flag_ =
false;
56 bool exit_flag_ =
true;
58 std::function<bool()> work_func_;
void Bind(const std::function< bool()> &func)
~ThreadWorker()
Definition: thread_worker.h:29
Definition: thread_worker.h:26