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:25:21 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-09-27 15:25:21 -0700
commit74c729ce45ad8bc365e94def3e9ab167e016b0ed (patch)
tree315a4c87b2084f82bb72e656145b351f22ba3dce /src/core/lib/iomgr/timer_manager.cc
parent57d1bae72be3deb63230dd7967a9aab458e56f6d (diff)
Remove another cv
Diffstat (limited to 'src/core/lib/iomgr/timer_manager.cc')
-rw-r--r--src/core/lib/iomgr/timer_manager.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/lib/iomgr/timer_manager.cc b/src/core/lib/iomgr/timer_manager.cc
index 3be1209228..ba4d50ac42 100644
--- a/src/core/lib/iomgr/timer_manager.cc
+++ b/src/core/lib/iomgr/timer_manager.cc
@@ -68,7 +68,6 @@ extern int64_t g_timer_manager_init_count;
extern int64_t g_timer_manager_shutdown_count;
extern int64_t g_fork_count;
extern int64_t g_timer_wait_err;
-extern int64_t g_timer_wait_cv;
#endif // GRPC_DEBUG_TIMER_MANAGER
static void gc_completed_threads(void) {
@@ -334,9 +333,9 @@ static void stop_threads(void) {
}
void grpc_timer_manager_shutdown(void) {
-// For debug of the timer manager crash only.
-// TODO (mxyan): remove after bug is fixed.
#ifdef GRPC_DEBUG_TIMER_MANAGER
+ // For debug of the timer manager crash only.
+ // TODO (mxyan): remove after bug is fixed.
g_timer_manager_shutdown_count++;
#endif
stop_threads();
@@ -347,9 +346,9 @@ void grpc_timer_manager_shutdown(void) {
}
void grpc_timer_manager_set_threading(bool threaded) {
-// For debug of the timer manager crash only.
-// TODO (mxyan): remove after bug is fixed.
#ifdef GRPC_DEBUG_TIMER_MANAGER
+ // For debug of the timer manager crash only.
+ // TODO (mxyan): remove after bug is fixed.
g_fork_count++;
#endif
if (threaded) {