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

Properly initialize TLS var

parent 91edc13b
No related branches found
No related tags found
No related merge requests found
......@@ -149,11 +149,13 @@ static const gpr_avl_vtable subchannel_avl_vtable = {
void grpc_subchannel_index_init(void) {
g_subchannel_index = gpr_avl_create(&subchannel_avl_vtable);
gpr_mu_init(&g_mu);
gpr_tls_init(&subchannel_index_exec_ctx);
}
void grpc_subchannel_index_shutdown(void) {
gpr_mu_destroy(&g_mu);
gpr_avl_unref(g_subchannel_index);
gpr_tls_destroy(&subchannel_index_exec_ctx);
}
grpc_subchannel *grpc_subchannel_index_find(grpc_exec_ctx *exec_ctx,
......
Subproject commit f8ac463766281625ad710900479130c7fcb4d63b
Subproject commit 5497a1dfc91a86965383cdd1652e348345400435
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