aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-11-02 12:55:39 -0700
committerGravatar GitHub <noreply@github.com>2017-11-02 12:55:39 -0700
commit744630d39df8371c46bb1ba371657eb0ec43d37a (patch)
tree86ed05909278d6afbd0ab4fd816a0166d9483101
parent53417d6e5e62901fd99121ba4f9b8fe76e940e8a (diff)
parent670106ebb29b00c13ef401c8a920004abb3ede16 (diff)
Merge pull request #13234 from yashykt/windowstimerfix
Add a grpc_exec_ctx_invalidate_now in grpc_pollset_work for windows
-rw-r--r--src/core/lib/iomgr/pollset_windows.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/pollset_windows.cc b/src/core/lib/iomgr/pollset_windows.cc
index bb4df83fc1..01aff02c36 100644
--- a/src/core/lib/iomgr/pollset_windows.cc
+++ b/src/core/lib/iomgr/pollset_windows.cc
@@ -161,8 +161,10 @@ grpc_error *grpc_pollset_work(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset,
while (!worker.kicked) {
if (gpr_cv_wait(&worker.cv, &grpc_polling_mu,
grpc_millis_to_timespec(deadline, GPR_CLOCK_REALTIME))) {
+ grpc_exec_ctx_invalidate_now(exec_ctx);
break;
}
+ grpc_exec_ctx_invalidate_now(exec_ctx);
}
} else {
pollset->kicked_without_pollers = 0;