Fix a bug whereby we miss some wakeups in highly concurrent situations

pull/10194/head
Craig Tiller 8 years ago
parent cf11476c3b
commit ac50b27992
  1. 2
      src/core/lib/iomgr/timer_generic.c

@ -477,6 +477,8 @@ static int run_some_expired_timers(grpc_exec_ctx *exec_ctx, gpr_atm now,
g_shard_queue[0]->min_deadline);
gpr_mu_unlock(&g_shared_mutables.mu);
gpr_spinlock_unlock(&g_shared_mutables.checker_mu);
} else {
if (next != NULL) *next = GPR_MIN(*next, min_timer);
}
GRPC_ERROR_UNREF(error);

Loading…
Cancel
Save