#include <threadpool.h>
Public Member Functions | |
void | Add (grpc_completion_queue_functor *closure) override |
int | num_pending_closures () const override |
int | pool_capacity () const override |
const char * | thread_name () const override |
const Thread::Options & | thread_options () const override |
ThreadPool (int num_threads) | |
ThreadPool (int num_threads, const char *thd_name) | |
ThreadPool (int num_threads, const char *thd_name, const Thread::Options &thread_options) | |
~ThreadPool () override | |
![]() | |
virtual | ~ThreadPoolInterface () |
Private Member Functions | |
void | AssertHasNotBeenShutDown () |
size_t | DefaultStackSize () |
void | SharedThreadPoolConstructor () |
Private Attributes | |
int | num_threads_ = 0 |
MPMCQueueInterface * | queue_ = nullptr |
std::atomic< bool > | shut_down_ |
const char * | thd_name_ = nullptr |
Thread::Options | thread_options_ |
ThreadPoolWorker ** | threads_ = nullptr |
Definition at line 97 of file src/core/lib/iomgr/executor/threadpool.h.
|
explicit |
Definition at line 78 of file threadpool.cc.
Definition at line 85 of file threadpool.cc.
grpc_core::ThreadPool::ThreadPool | ( | int | num_threads, |
const char * | thd_name, | ||
const Thread::Options & | thread_options | ||
) |
Definition at line 92 of file threadpool.cc.
|
override |
Definition at line 103 of file threadpool.cc.
|
overridevirtual |
Implements grpc_core::ThreadPoolInterface.
Definition at line 122 of file threadpool.cc.
|
private |
Definition at line 73 of file threadpool.cc.
|
private |
Definition at line 65 of file threadpool.cc.
|
overridevirtual |
Implements grpc_core::ThreadPoolInterface.
Definition at line 127 of file threadpool.cc.
|
overridevirtual |
Implements grpc_core::ThreadPoolInterface.
Definition at line 129 of file threadpool.cc.
|
private |
Definition at line 49 of file threadpool.cc.
|
overridevirtual |
Implements grpc_core::ThreadPoolInterface.
Definition at line 135 of file threadpool.cc.
|
overridevirtual |
Implements grpc_core::ThreadPoolInterface.
Definition at line 131 of file threadpool.cc.
|
private |
Definition at line 131 of file src/core/lib/iomgr/executor/threadpool.h.
|
private |
Definition at line 135 of file src/core/lib/iomgr/executor/threadpool.h.
|
private |
Definition at line 137 of file src/core/lib/iomgr/executor/threadpool.h.
|
private |
Definition at line 132 of file src/core/lib/iomgr/executor/threadpool.h.
|
private |
Definition at line 133 of file src/core/lib/iomgr/executor/threadpool.h.
|
private |
Definition at line 134 of file src/core/lib/iomgr/executor/threadpool.h.