aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/timer_manager.cc
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-09-27 15:33:34 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-09-27 15:33:34 -0700
commitec09960e21722571f0638465c29b434b1bd38199 (patch)
tree5ef230eb596adf5453a4d2edd264d2169ca54a88 /src/core/lib/iomgr/timer_manager.cc
parent74c729ce45ad8bc365e94def3e9ab167e016b0ed (diff)
Log init counter after the cv is initialized
Diffstat (limited to 'src/core/lib/iomgr/timer_manager.cc')
-rw-r--r--src/core/lib/iomgr/timer_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/timer_manager.cc b/src/core/lib/iomgr/timer_manager.cc
index ba4d50ac42..eaba05a5ce 100644
--- a/src/core/lib/iomgr/timer_manager.cc
+++ b/src/core/lib/iomgr/timer_manager.cc
@@ -291,13 +291,13 @@ static void start_threads(void) {
}
void grpc_timer_manager_init(void) {
+ gpr_mu_init(&g_mu);
+ gpr_cv_init(&g_cv_wait);
#ifdef GRPC_DEBUG_TIMER_MANAGER
// For debug of the timer manager crash only.
// TODO (mxyan): remove after bug is fixed.
g_timer_manager_init_count++;
#endif
- gpr_mu_init(&g_mu);
- gpr_cv_init(&g_cv_wait);
gpr_cv_init(&g_cv_shutdown);
g_threaded = false;
g_thread_count = 0;