aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/ev_posix.c
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2017-04-04 13:49:08 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2017-04-04 13:58:02 -0700
commit3c754e471619f20ceba807a35b40b2decbcb54b3 (patch)
treef40f57ce638312b73481b0decf164416d2b57694 /src/core/lib/iomgr/ev_posix.c
parenta5da6e1806dcd1e26692e1bb1a024abf81beca89 (diff)
Microbenchmark for measuring impact of multiple threads calling cq_next
Diffstat (limited to 'src/core/lib/iomgr/ev_posix.c')
-rw-r--r--src/core/lib/iomgr/ev_posix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/ev_posix.c b/src/core/lib/iomgr/ev_posix.c
index b5be5504b9..13409a4de8 100644
--- a/src/core/lib/iomgr/ev_posix.c
+++ b/src/core/lib/iomgr/ev_posix.c
@@ -111,6 +111,12 @@ static void try_engine(const char *engine) {
}
}
+/* This should be used for testing purposes ONLY */
+void grpc_set_event_engine_test_only(
+ const grpc_event_engine_vtable *ev_engine) {
+ g_event_engine = ev_engine;
+}
+
/* Call this only after calling grpc_event_engine_init() */
const char *grpc_get_poll_strategy_name() { return g_poll_strategy_name; }