GRPC C++  1.39.1
Public Member Functions | Static Public Member Functions
grpc_core::Executor Class Reference

#include <executor.h>

Public Member Functions

 Executor (const char *executor_name)
 
void Init ()
 
bool IsThreaded () const
 Is the executor multi-threaded? More...
 
void SetThreading (bool threading)
 
void Shutdown ()
 Shutdown the executor, running all pending work as part of the call. More...
 
void Enqueue (grpc_closure *closure, grpc_error_handle error, bool is_short)
 Enqueue the closure onto the executor. More...
 

Static Public Member Functions

static void InitAll ()
 
static void Run (grpc_closure *closure, grpc_error_handle error, ExecutorType executor_type=ExecutorType::DEFAULT, ExecutorJobType job_type=ExecutorJobType::SHORT)
 
static void ShutdownAll ()
 
static void SetThreadingAll (bool enable)
 
static void SetThreadingDefault (bool enable)
 
static bool IsThreaded (ExecutorType executor_type)
 
static bool IsThreadedDefault ()
 

Constructor & Destructor Documentation

◆ Executor()

grpc_core::Executor::Executor ( const char *  executor_name)
explicit

Member Function Documentation

◆ Enqueue()

void grpc_core::Executor::Enqueue ( grpc_closure closure,
grpc_error_handle  error,
bool  is_short 
)

Enqueue the closure onto the executor.

is_short is true if the closure is a short job (i.e expected to not block and complete quickly)

◆ Init()

void grpc_core::Executor::Init ( )

◆ InitAll()

void grpc_core::Executor::InitAll ( )
static

◆ IsThreaded() [1/2]

bool grpc_core::Executor::IsThreaded ( ) const

Is the executor multi-threaded?

◆ IsThreaded() [2/2]

bool grpc_core::Executor::IsThreaded ( ExecutorType  executor_type)
static

◆ IsThreadedDefault()

bool grpc_core::Executor::IsThreadedDefault ( )
static

◆ Run()

void grpc_core::Executor::Run ( grpc_closure closure,
grpc_error_handle  error,
ExecutorType  executor_type = ExecutorType::DEFAULT,
ExecutorJobType  job_type = ExecutorJobType::SHORT 
)
static

◆ SetThreading()

void grpc_core::Executor::SetThreading ( bool  threading)

◆ SetThreadingAll()

void grpc_core::Executor::SetThreadingAll ( bool  enable)
static

◆ SetThreadingDefault()

void grpc_core::Executor::SetThreadingDefault ( bool  enable)
static

◆ Shutdown()

void grpc_core::Executor::Shutdown ( )

Shutdown the executor, running all pending work as part of the call.

◆ ShutdownAll()

void grpc_core::Executor::ShutdownAll ( )
static

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