From 1e69b7c0a52f1b7dbd5b3a1d802f66e83005db22 Mon Sep 17 00:00:00 2001 From: Sree Kuchibhotla Date: Tue, 10 Jul 2018 19:30:09 -0700 Subject: [PATCH] Rename grpc_executor_job_type to C++ style name --- src/core/lib/iomgr/executor.cc | 3 +-- src/core/lib/iomgr/executor.h | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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();