Skip to content

Commit

Permalink
Reintroduce sleep on backup thread
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Mar 6, 2015
1 parent 3e0f48b commit 64d0a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/iomgr/pollset_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 64d0a87

Please sign in to comment.