aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/iomgr_custom.cc
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2019-01-09 13:43:24 -0800
committerGravatar GitHub <noreply@github.com>2019-01-09 13:43:24 -0800
commit302e7b4d2b97a2f4742296234b66507842bb096b (patch)
tree0fd5eb3b5166604c83e98f7e51d6689b1bf84a51 /src/core/lib/iomgr/iomgr_custom.cc
parent54963bb90de38f6349f3dc3e82810f257c713621 (diff)
parent11eff929e24cae59ed21c2f3a0bde22a6dbe0d91 (diff)
Merge pull request #17658 from guantaol/avoid_thd_jump
Avoid the thread jump in server callback APIs.
Diffstat (limited to 'src/core/lib/iomgr/iomgr_custom.cc')
-rw-r--r--src/core/lib/iomgr/iomgr_custom.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/iomgr_custom.cc b/src/core/lib/iomgr/iomgr_custom.cc
index 4b112c9097..e1cd8f7310 100644
--- a/src/core/lib/iomgr/iomgr_custom.cc
+++ b/src/core/lib/iomgr/iomgr_custom.cc
@@ -41,10 +41,14 @@ static void iomgr_platform_init(void) {
static void iomgr_platform_flush(void) {}
static void iomgr_platform_shutdown(void) { grpc_pollset_global_shutdown(); }
static void iomgr_platform_shutdown_background_closure(void) {}
+static bool iomgr_platform_is_any_background_poller_thread(void) {
+ return false;
+}
static grpc_iomgr_platform_vtable vtable = {
iomgr_platform_init, iomgr_platform_flush, iomgr_platform_shutdown,
- iomgr_platform_shutdown_background_closure};
+ iomgr_platform_shutdown_background_closure,
+ iomgr_platform_is_any_background_poller_thread};
void grpc_custom_iomgr_init(grpc_socket_vtable* socket,
grpc_custom_resolver_vtable* resolver,