#include <thread_pool.h>
Public Member Functions | |
virtual std::weak_ptr< Task > | Schedule (std::unique_ptr< Task > task)=0 |
ThreadPoolInterface () | |
virtual | ~ThreadPoolInterface () |
Protected Member Functions | |
void | Execute (Task *task) |
void | SetThreadPool (Task *task) |
Private Member Functions | |
virtual void | NotifyDependenciesCompleted (Task *task)=0 |
Friends | |
class | Task |
Definition at line 35 of file thread_pool.h.
Definition at line 37 of file thread_pool.h.
virtual cartographer::common::ThreadPoolInterface::~ThreadPoolInterface | ( | ) | [inline, virtual] |
Definition at line 38 of file thread_pool.h.
void cartographer::common::ThreadPoolInterface::Execute | ( | Task * | task | ) | [protected] |
Definition at line 33 of file thread_pool.cc.
virtual void cartographer::common::ThreadPoolInterface::NotifyDependenciesCompleted | ( | Task * | task | ) | [private, pure virtual] |
Implemented in cartographer::common::ThreadPool, and cartographer::common::testing::ThreadPoolForTesting.
virtual std::weak_ptr<Task> cartographer::common::ThreadPoolInterface::Schedule | ( | std::unique_ptr< Task > | task | ) | [pure virtual] |
Implemented in cartographer::common::ThreadPool, and cartographer::common::testing::ThreadPoolForTesting.
void cartographer::common::ThreadPoolInterface::SetThreadPool | ( | Task * | task | ) | [protected] |
Definition at line 35 of file thread_pool.cc.
friend class Task [friend] |
Reimplemented in cartographer::common::testing::ThreadPoolForTesting.
Definition at line 46 of file thread_pool.h.