Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::ThreadPoolWorker Class Reference

#include <threadpool.h>

Classes

struct  Stats
 

Public Member Functions

void Join ()
 
void Start ()
 
 ThreadPoolWorker (const char *thd_name, MPMCQueueInterface *queue, Thread::Options &options, int index)
 
 ~ThreadPoolWorker ()
 

Private Member Functions

void Run ()
 

Private Attributes

int index_
 
MPMCQueueInterfacequeue_
 
Stats stats_
 
Thread thd_
 
const char * thd_name_
 

Detailed Description

Definition at line 63 of file src/core/lib/iomgr/executor/threadpool.h.

Constructor & Destructor Documentation

◆ ThreadPoolWorker()

grpc_core::ThreadPoolWorker::ThreadPoolWorker ( const char *  thd_name,
MPMCQueueInterface queue,
Thread::Options options,
int  index 
)
inline

Definition at line 65 of file src/core/lib/iomgr/executor/threadpool.h.

◆ ~ThreadPoolWorker()

grpc_core::ThreadPoolWorker::~ThreadPoolWorker ( )
inline

Definition at line 73 of file src/core/lib/iomgr/executor/threadpool.h.

Member Function Documentation

◆ Join()

void grpc_core::ThreadPoolWorker::Join ( )
inline

Definition at line 76 of file src/core/lib/iomgr/executor/threadpool.h.

◆ Run()

void grpc_core::ThreadPoolWorker::Run ( )
private

Definition at line 25 of file threadpool.cc.

◆ Start()

void grpc_core::ThreadPoolWorker::Start ( )
inline

Definition at line 75 of file src/core/lib/iomgr/executor/threadpool.h.

Member Data Documentation

◆ index_

int grpc_core::ThreadPoolWorker::index_
private

Definition at line 91 of file src/core/lib/iomgr/executor/threadpool.h.

◆ queue_

MPMCQueueInterface* grpc_core::ThreadPoolWorker::queue_
private

Definition at line 87 of file src/core/lib/iomgr/executor/threadpool.h.

◆ stats_

Stats grpc_core::ThreadPoolWorker::stats_
private

Definition at line 89 of file src/core/lib/iomgr/executor/threadpool.h.

◆ thd_

Thread grpc_core::ThreadPoolWorker::thd_
private

Definition at line 88 of file src/core/lib/iomgr/executor/threadpool.h.

◆ thd_name_

const char* grpc_core::ThreadPoolWorker::thd_name_
private

Definition at line 90 of file src/core/lib/iomgr/executor/threadpool.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:37