Go to the documentation of this file.
26 namespace iomgr_engine {
31 "iomgr_eventengine_pool",
44 pool_->dead_threads_.push_back(
this);
46 if (
pool_->nthreads_ == 0) {
48 if (
pool_->shutdown_)
pool_->shutdown_cv_.Signal();
91 for (
int i = 0;
i <
n;
i++) {
98 for (
auto* t : *tlist)
delete t;
std::queue< std::function< void()> > callbacks_
grpc_core::CondVar fork_cv_
void Add(const std::function< void()> &callback)
void Release() ABSL_UNLOCK_FUNCTION()
void StartNThreadsLocked(int n) ABSL_EXCLUSIVE_LOCKS_REQUIRED(&mu_)
void PrepareFork() override
void PostforkChild() override
static void callback(void *arg, int status, int timeouts, struct hostent *host)
std::vector< Thread * > dead_threads_
ThreadPool(int reserve_threads)
static void ReapThreads(std::vector< Thread * > *tlist)
grpc_core::CondVar shutdown_cv_
InternalDescriptorPool * pool
void PostforkParent() override
Options & set_tracked(bool tracked)
Set whether the thread is tracked for fork support.
OPENSSL_EXPORT pem_password_cb * cb
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:37