#include <dynamic_thread_pool.h>
Classes | |
class | DynamicThread |
Public Member Functions | |
void | Add (const std::function< void()> &callback) override |
DynamicThreadPool (int reserve_threads) | |
~DynamicThreadPool () override | |
![]() | |
virtual | ~ThreadPoolInterface () |
Private Member Functions | |
void | ThreadFunc () |
Static Private Member Functions | |
static void | ReapThreads (std::list< DynamicThread * > *tlist) |
Private Attributes | |
std::queue< std::function< void()> > | callbacks_ |
grpc_core::CondVar | cv_ |
std::list< DynamicThread * > | dead_threads_ |
grpc_core::Mutex | mu_ |
int | nthreads_ |
int | reserve_threads_ |
bool | shutdown_ |
grpc_core::CondVar | shutdown_cv_ |
int | threads_waiting_ |
Definition at line 32 of file dynamic_thread_pool.h.
|
explicit |
Definition at line 76 of file dynamic_thread_pool.cc.
|
override |
Definition at line 94 of file dynamic_thread_pool.cc.
|
overridevirtual |
Implements grpc::ThreadPoolInterface.
Definition at line 104 of file dynamic_thread_pool.cc.
|
staticprivate |
Definition at line 88 of file dynamic_thread_pool.cc.
|
private |
Definition at line 50 of file dynamic_thread_pool.cc.
|
private |
Definition at line 54 of file dynamic_thread_pool.h.
|
private |
Definition at line 51 of file dynamic_thread_pool.h.
|
private |
Definition at line 58 of file dynamic_thread_pool.h.
|
private |
Definition at line 50 of file dynamic_thread_pool.h.
|
private |
Definition at line 56 of file dynamic_thread_pool.h.
|
private |
Definition at line 55 of file dynamic_thread_pool.h.
|
private |
Definition at line 53 of file dynamic_thread_pool.h.
|
private |
Definition at line 52 of file dynamic_thread_pool.h.
|
private |
Definition at line 57 of file dynamic_thread_pool.h.