17 #ifndef CARTOGRAPHER_COMMON_TASK_H_ 18 #define CARTOGRAPHER_COMMON_TASK_H_ 23 #include "glog/logging.h" 29 class ThreadPoolInterface;
76 #endif // CARTOGRAPHER_COMMON_TASK_H_
void SetWorkItem(const WorkItem &work_item) EXCLUDES(mutex_)
std::function< void()> WorkItem
void AddDependency(std::weak_ptr< Task > dependency) EXCLUDES(mutex_)
void OnDependenyCompleted()
State GetState() EXCLUDES(mutex_)
void Execute() EXCLUDES(mutex_)
void SetThreadPool(ThreadPoolInterface *thread_pool) EXCLUDES(mutex_)
void AddDependentTask(Task *dependent_task)
WorkItem work_item_ GUARDED_BY(mutex_)