From 64d0a87d98783be9eba8fcad184f9a7399144add Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 6 Mar 2015 13:59:57 -0800 Subject: [PATCH] Reintroduce sleep on backup thread --- src/core/iomgr/pollset_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c index 0151550a818..0bb722e2b12 100644 --- a/src/core/iomgr/pollset_posix.c +++ b/src/core/iomgr/pollset_posix.c @@ -66,7 +66,7 @@ static void backup_poller(void *p) { gpr_timespec next_poll = gpr_time_add(last_poll, delta); grpc_pollset_work(&g_backup_pollset, gpr_time_add(gpr_now(), gpr_time_from_seconds(1))); gpr_mu_unlock(&g_backup_pollset.mu); - /*gpr_sleep_until(next_poll);*/ + gpr_sleep_until(next_poll); gpr_mu_lock(&g_backup_pollset.mu); last_poll = next_poll; }