diff options
author | Sree Kuchibhotla <sreek@google.com> | 2016-06-21 20:42:52 -0700 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2016-06-21 20:42:52 -0700 |
commit | 229533b1e68c4a4b8a67148f7fe25543584131f6 (patch) | |
tree | e4e5651db6be713d5c7ef62f3e23502f7e9d50cc /src/core/lib/iomgr/ev_posix.c | |
parent | 3ce2f6791d342740633843c6e34f24c4a56ab485 (diff) |
Remove pollset->pi_mu since it is redundant. Also do not get polling
island lock in the fast-path
Diffstat (limited to 'src/core/lib/iomgr/ev_posix.c')
-rw-r--r-- | src/core/lib/iomgr/ev_posix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/ev_posix.c b/src/core/lib/iomgr/ev_posix.c index 4cdd13bbdb..a3c1e9db9a 100644 --- a/src/core/lib/iomgr/ev_posix.c +++ b/src/core/lib/iomgr/ev_posix.c @@ -54,7 +54,7 @@ grpc_poll_function_type grpc_poll_function = poll; static const grpc_event_engine_vtable *g_event_engine; -static const char* g_poll_strategy_name = NULL; +static const char *g_poll_strategy_name = NULL; typedef const grpc_event_engine_vtable *(*event_engine_factory_fn)(void); @@ -111,9 +111,7 @@ static void try_engine(const char *engine) { } /* Call this only after calling grpc_event_engine_init() */ -const char *grpc_get_poll_strategy_name() { - return g_poll_strategy_name; -} +const char *grpc_get_poll_strategy_name() { return g_poll_strategy_name; } void grpc_event_engine_init(void) { char *s = gpr_getenv("GRPC_POLL_STRATEGY"); |