GRPC C++  1.26.0
Public Member Functions
grpc_core::ThreadPool Class Reference

#include <threadpool.h>

Public Member Functions

 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
 
void Add (grpc_experimental_completion_queue_functor *closure) override
 
int num_pending_closures () const override
 
int pool_capacity () const override
 
const Thread::Optionsthread_options () const override
 
const char * thread_name () const override
 
- Public Member Functions inherited from grpc_core::ThreadPoolInterface
virtual ~ThreadPoolInterface ()
 

Constructor & Destructor Documentation

◆ ThreadPool() [1/3]

grpc_core::ThreadPool::ThreadPool ( int  num_threads)

◆ ThreadPool() [2/3]

grpc_core::ThreadPool::ThreadPool ( int  num_threads,
const char *  thd_name 
)

◆ ThreadPool() [3/3]

grpc_core::ThreadPool::ThreadPool ( int  num_threads,
const char *  thd_name,
const Thread::Options thread_options 
)

◆ ~ThreadPool()

grpc_core::ThreadPool::~ThreadPool ( )
override

Member Function Documentation

◆ Add()

void grpc_core::ThreadPool::Add ( grpc_experimental_completion_queue_functor closure)
overridevirtual

◆ num_pending_closures()

int grpc_core::ThreadPool::num_pending_closures ( ) const
overridevirtual

◆ pool_capacity()

int grpc_core::ThreadPool::pool_capacity ( ) const
overridevirtual

◆ thread_name()

const char* grpc_core::ThreadPool::thread_name ( ) const
overridevirtual

◆ thread_options()

const Thread::Options& grpc_core::ThreadPool::thread_options ( ) const
overridevirtual

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