#include <SimpleThreadPool.h>
Classes | |
struct | PerThread |
struct | Waiter |
Public Member Functions | |
int | CurrentThreadId () const final |
int | NumThreads () const final |
void | Schedule (std::function< void()> fn) final |
SimpleThreadPoolTempl (int num_threads, Environment env=Environment()) | |
~SimpleThreadPoolTempl () | |
Public Member Functions inherited from Eigen::ThreadPoolInterface | |
virtual | ~ThreadPoolInterface () |
Protected Member Functions | |
void | WorkerLoop (int thread_id) |
Private Types | |
typedef Environment::Task | Task |
typedef Environment::EnvThread | Thread |
Private Member Functions | |
PerThread * | GetPerThread () const |
Private Attributes | |
std::condition_variable | empty_ |
Environment | env_ |
bool | exiting_ = false |
std::mutex | mu_ |
std::deque< Task > | pending_ |
MaxSizeVector< Thread * > | threads_ |
MaxSizeVector< Waiter * > | waiters_ |
Definition at line 21 of file SimpleThreadPool.h.
|
private |
Definition at line 121 of file SimpleThreadPool.h.
|
private |
Definition at line 122 of file SimpleThreadPool.h.
|
inlineexplicit |
Definition at line 24 of file SimpleThreadPool.h.
|
inline |
Definition at line 33 of file SimpleThreadPool.h.
|
inlinefinalvirtual |
Implements Eigen::ThreadPoolInterface.
Definition at line 76 of file SimpleThreadPool.h.
|
inlineprivate |
Definition at line 144 of file SimpleThreadPool.h.
|
inlinefinalvirtual |
Implements Eigen::ThreadPoolInterface.
Definition at line 72 of file SimpleThreadPool.h.
|
inlinefinalvirtual |
Implements Eigen::ThreadPoolInterface.
Definition at line 58 of file SimpleThreadPool.h.
|
inlineprotected |
Definition at line 86 of file SimpleThreadPool.h.
|
private |
Definition at line 141 of file SimpleThreadPool.h.
|
private |
Definition at line 136 of file SimpleThreadPool.h.
|
private |
Definition at line 142 of file SimpleThreadPool.h.
|
private |
Definition at line 137 of file SimpleThreadPool.h.
|
private |
Definition at line 140 of file SimpleThreadPool.h.
|
private |
Definition at line 138 of file SimpleThreadPool.h.
|
private |
Definition at line 139 of file SimpleThreadPool.h.