Rename grpc_executor_job_type to C++ style name

pull/15962/head
Sree Kuchibhotla 7 years ago
parent 02872df249
commit 1e69b7c0a5
  1. 3
      src/core/lib/iomgr/executor.cc
  2. 5
      src/core/lib/iomgr/executor.h

@ -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;
}

@ -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();

Loading…
Cancel
Save