Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_IOMGR_EXECUTOR_H
20 #define GRPC_CORE_LIB_IOMGR_EXECUTOR_H
108 static void ThreadMain(
void* arg);
bool shutdown
Definition: executor.h:37
static bool IsThreadedDefault()
Definition: spinlock.h:28
Internal thread interface.
Definition: backoff.h:26
pthread_cond_t gpr_cv
Definition: sync_posix.h:46
static void ShutdownAll()
static void SetThreadingDefault(bool enable)
size_t depth
Definition: executor.h:36
Definition: executor.h:55
size_t id
Definition: executor.h:32
void Enqueue(grpc_closure *closure, grpc_error *error, bool is_short)
Enqueue the closure onto the executor.
static void Run(grpc_closure *closure, grpc_error *error, ExecutorType executor_type=ExecutorType::DEFAULT, ExecutorJobType job_type=ExecutorJobType::SHORT)
static void SetThreadingAll(bool enable)
bool IsThreaded() const
Is the executor multi-threaded?
void SetThreading(bool threading)
intptr_t gpr_atm
Definition: atm_gcc_atomic.h:30
gpr_cv cv
Definition: executor.h:34
grpc_core::Thread thd
Definition: executor.h:39
ExecutorType
Definition: executor.h:42
void Shutdown()
Shutdown the executor, running all pending work as part of the call.
bool queued_long_job
Definition: executor.h:38
Definition: executor.h:30
static bool IsThreaded(ExecutorType executor_type)
Definition: sync_windows.h:26
const char * name
Definition: executor.h:33
Definition: error_internal.h:39
A closure over a grpc_iomgr_cb_func.
Definition: closure.h:56
gpr_mu mu
Definition: executor.h:31
ExecutorJobType
Definition: executor.h:49
void grpc_executor_global_init()
Executor(const char *executor_name)
grpc_closure_list elems
Definition: executor.h:35