Skip to content
Snippets Groups Projects
Commit a65e4631 authored by David Klempner's avatar David Klempner
Browse files

Merge pull request #974 from ctiller/arghhh

Reintroduce sleep on backup thread
parents 3e0f48b2 64d0a87d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment