Proper init/shutdown

pull/1903/head
Craig Tiller 10 years ago
parent af7abf92cb
commit 2f300e297f
  1. 3
      src/core/debug/trace.c
  2. 1
      src/core/debug/trace.h
  3. 1
      src/core/surface/init.c

@ -99,6 +99,9 @@ void grpc_tracer_init(const char *env_var) {
parse(e);
gpr_free(e);
}
}
void grpc_tracer_shutdown(void) {
while (tracers) {
tracer *t = tracers;
tracers = t->next;

@ -38,5 +38,6 @@
void grpc_register_tracer(const char *name, int *flag);
void grpc_tracer_init(const char *env_var_name);
void grpc_tracer_shutdown(void);
#endif /* GRPC_INTERNAL_CORE_DEBUG_TRACE_H */

@ -78,6 +78,7 @@ void grpc_shutdown(void) {
grpc_iomgr_shutdown();
census_shutdown();
grpc_timers_global_destroy();
grpc_tracer_shutdown();
}
gpr_mu_unlock(&g_init_mu);
}

Loading…
Cancel
Save