Skip to content
Snippets Groups Projects
Commit 6c963cd7 authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #1196 from vjpai/fix-time-race

Remove the racy check added in commit 74c14e5a
parents cc6017bb cf1a7e03
No related branches found
No related tags found
No related merge requests found
...@@ -307,10 +307,6 @@ static int run_some_expired_alarms(gpr_mu *drop_mu, gpr_timespec now, ...@@ -307,10 +307,6 @@ static int run_some_expired_alarms(gpr_mu *drop_mu, gpr_timespec now,
/* TODO(ctiller): verify that there are any alarms (atomically) here */ /* TODO(ctiller): verify that there are any alarms (atomically) here */
if (gpr_time_cmp(g_shard_queue[0]->min_deadline, now) >= 0) {
return 0;
}
if (gpr_mu_trylock(&g_checker_mu)) { if (gpr_mu_trylock(&g_checker_mu)) {
gpr_mu_lock(&g_mu); gpr_mu_lock(&g_mu);
......
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