initializing checker_mu in timer_list to be safe

pull/12624/head
Yash Tibrewal 7 years ago
parent 341c7e7eca
commit e203067bdc
  1. 2
      src/core/lib/iomgr/timer_generic.c

@ -153,7 +153,7 @@ void grpc_timer_list_init(gpr_timespec now) {
uint32_t i; uint32_t i;
g_shared_mutables.initialized = true; g_shared_mutables.initialized = true;
g_shared_mutables.checker_mu = GPR_SPINLOCK_STATIC_INITIALIZER; g_shared_mutables.checker_mu = GPR_SPINLOCK_INITIALIZER;
gpr_mu_init(&g_shared_mutables.mu); gpr_mu_init(&g_shared_mutables.mu);
g_clock_type = now.clock_type; g_clock_type = now.clock_type;
g_start_time = now; g_start_time = now;

Loading…
Cancel
Save