Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
cartographer::common::ThreadPoolInterface Class Referenceabstract

#include <thread_pool.h>

Inheritance diagram for cartographer::common::ThreadPoolInterface:
Inheritance graph
[legend]

Public Member Functions

virtual std::weak_ptr< TaskSchedule (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
 

Detailed Description

Definition at line 35 of file thread_pool.h.

Constructor & Destructor Documentation

◆ ThreadPoolInterface()

cartographer::common::ThreadPoolInterface::ThreadPoolInterface ( )
inline

Definition at line 37 of file thread_pool.h.

◆ ~ThreadPoolInterface()

virtual cartographer::common::ThreadPoolInterface::~ThreadPoolInterface ( )
inlinevirtual

Definition at line 38 of file thread_pool.h.

Member Function Documentation

◆ Execute()

void cartographer::common::ThreadPoolInterface::Execute ( Task task)
protected

Definition at line 31 of file thread_pool.cc.

◆ NotifyDependenciesCompleted()

virtual void cartographer::common::ThreadPoolInterface::NotifyDependenciesCompleted ( Task task)
privatepure virtual

◆ Schedule()

virtual std::weak_ptr<Task> cartographer::common::ThreadPoolInterface::Schedule ( std::unique_ptr< Task task)
pure virtual

◆ SetThreadPool()

void cartographer::common::ThreadPoolInterface::SetThreadPool ( Task task)
protected

Definition at line 33 of file thread_pool.cc.

Friends And Related Function Documentation

◆ Task

friend class Task
friend

Definition at line 46 of file thread_pool.h.


The documentation for this class was generated from the following files:


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59