Go to the documentation of this file.
19 #ifndef GRPC_INTERNAL_CPP_THREAD_MANAGER_H
20 #define GRPC_INTERNAL_CPP_THREAD_MANAGER_H
34 int min_pollers,
int max_pollers);
74 virtual void DoWork(
void*
tag,
bool ok,
bool resources) = 0;
179 #endif // GRPC_INTERNAL_CPP_THREAD_MANAGER_H
struct grpc_resource_quota grpc_resource_quota
ThreadManager(const char *name, grpc_resource_quota *resource_quota, int min_pollers, int max_pollers)
virtual WorkStatus PollForWork(void **tag, bool *ok)=0
WorkerThread(ThreadManager *thd_mgr)
grpc_core::ThreadQuotaPtr thread_quota_
ResourceQuotaRefPtr resource_quota
std::list< WorkerThread * > completed_threads_
static void * tag(intptr_t t)
ThreadManager *const thd_mgr_
virtual void DoWork(void *tag, bool ok, bool resources)=0
void MarkAsCompleted(WorkerThread *thd)
grpc_core::CondVar shutdown_cv_
int GetMaxActiveThreadsSoFar()
int max_active_threads_sofar_
void CleanupCompletedThreads()
grpc_core::Mutex list_mu_
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:37