Public Member Functions | Private Member Functions | Private Attributes | Friends
cartographer::common::testing::ThreadPoolForTesting Class Reference

#include <thread_pool_for_testing.h>

Inheritance diagram for cartographer::common::testing::ThreadPoolForTesting:
Inheritance graph
[legend]

List of all members.

Public Member Functions

std::weak_ptr< TaskSchedule (std::unique_ptr< Task > task) LOCKS_EXCLUDED(mutex_) override
 ThreadPoolForTesting ()
void WaitUntilIdle ()
 ~ThreadPoolForTesting ()

Private Member Functions

void DoWork ()
bool running_ GUARDED_BY (mutex_)
bool idle_ GUARDED_BY (mutex_)
std::deque< std::shared_ptr
< Task > > task_queue_ 
GUARDED_BY (mutex_)
std::map< Task
*, std::shared_ptr< Task >
> tasks_not_ready_ 
GUARDED_BY (mutex_)
std::thread thread_ GUARDED_BY (mutex_)
void NotifyDependenciesCompleted (Task *task) LOCKS_EXCLUDED(mutex_) override

Private Attributes

absl::Mutex mutex_

Friends

class Task

Detailed Description

Definition at line 32 of file thread_pool_for_testing.h.


Constructor & Destructor Documentation

Definition at line 35 of file thread_pool_for_testing.cc.


Member Function Documentation

std::weak_ptr<Task> cartographer::common::testing::ThreadPoolForTesting::Schedule ( std::unique_ptr< Task task) [override, virtual]

Friends And Related Function Documentation

friend class Task [friend]

Reimplemented from cartographer::common::ThreadPoolInterface.

Definition at line 43 of file thread_pool_for_testing.h.


Member Data Documentation

Definition at line 49 of file thread_pool_for_testing.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Thu May 9 2019 02:27:36