18 #include <condition_variable> 24 namespace perception {
33 void Bind(
const std::function<
bool()> &
func);
52 std::unique_ptr<std::thread> thread_ptr_;
54 std::condition_variable condition_;
56 bool work_flag_ =
false;
57 bool exit_flag_ =
true;
59 std::function<bool()> work_func_;
void(* func)(void *)
Definition: routine_context.h:41
void Bind(const std::function< bool()> &func)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
~ThreadWorker()
Definition: thread_worker.h:30
Definition: thread_worker.h:27