diff --git a/src/core/lib/iomgr/executor.cc b/src/core/lib/iomgr/executor.cc index b01fea0c2d7..c81882069e2 100644 --- a/src/core/lib/iomgr/executor.cc +++ b/src/core/lib/iomgr/executor.cc @@ -328,8 +328,7 @@ void grpc_executor_set_threading(bool enable) { g_global_executor.SetThreading(enable); } -grpc_closure_scheduler* grpc_executor_scheduler( - grpc_executor_job_type job_type) { +grpc_closure_scheduler* grpc_executor_scheduler(GrpcExecutorJobType job_type) { return job_type == GRPC_EXECUTOR_SHORT ? &global_scheduler_short : &global_scheduler_long; } diff --git a/src/core/lib/iomgr/executor.h b/src/core/lib/iomgr/executor.h index b6515605cb1..ceeca2fc14f 100644 --- a/src/core/lib/iomgr/executor.h +++ b/src/core/lib/iomgr/executor.h @@ -36,7 +36,7 @@ typedef struct { grpc_core::Thread thd; } ThreadState; -typedef enum { GRPC_EXECUTOR_SHORT, GRPC_EXECUTOR_LONG } grpc_executor_job_type; +typedef enum { GRPC_EXECUTOR_SHORT, GRPC_EXECUTOR_LONG } GrpcExecutorJobType; class GrpcExecutor { public: @@ -71,8 +71,7 @@ class GrpcExecutor { void grpc_executor_init(); -grpc_closure_scheduler* grpc_executor_scheduler( - grpc_executor_job_type job_type); +grpc_closure_scheduler* grpc_executor_scheduler(GrpcExecutorJobType job_type); void grpc_executor_shutdown();