Skip to content
Snippets Groups Projects
Commit 2f300e29 authored by Craig Tiller's avatar Craig Tiller
Browse files

Proper init/shutdown

parent af7abf92
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,9 @@ void grpc_tracer_init(const char *env_var) { ...@@ -99,6 +99,9 @@ void grpc_tracer_init(const char *env_var) {
parse(e); parse(e);
gpr_free(e); gpr_free(e);
} }
}
void grpc_tracer_shutdown(void) {
while (tracers) { while (tracers) {
tracer *t = tracers; tracer *t = tracers;
tracers = t->next; tracers = t->next;
......
...@@ -38,5 +38,6 @@ ...@@ -38,5 +38,6 @@
void grpc_register_tracer(const char *name, int *flag); void grpc_register_tracer(const char *name, int *flag);
void grpc_tracer_init(const char *env_var_name); void grpc_tracer_init(const char *env_var_name);
void grpc_tracer_shutdown(void);
#endif /* GRPC_INTERNAL_CORE_DEBUG_TRACE_H */ #endif /* GRPC_INTERNAL_CORE_DEBUG_TRACE_H */
...@@ -78,6 +78,7 @@ void grpc_shutdown(void) { ...@@ -78,6 +78,7 @@ void grpc_shutdown(void) {
grpc_iomgr_shutdown(); grpc_iomgr_shutdown();
census_shutdown(); census_shutdown();
grpc_timers_global_destroy(); grpc_timers_global_destroy();
grpc_tracer_shutdown();
} }
gpr_mu_unlock(&g_init_mu); gpr_mu_unlock(&g_init_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