diff options
author | Craig Tiller <ctiller@google.com> | 2015-03-06 13:59:57 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-03-06 13:59:57 -0800 |
commit | 64d0a87d98783be9eba8fcad184f9a7399144add (patch) | |
tree | d03fcc97742ca959884757659f2145b89fc543b9 /src | |
parent | 3e0f48b2ec8d8d64728f3662d9e2180bdbd9c803 (diff) |
Reintroduce sleep on backup thread
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/pollset_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/pollset_posix.c b/src/core/iomgr/pollset_posix.c index 0151550a81..0bb722e2b1 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; } |