aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-02-24 09:57:21 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-02-24 09:57:21 -0800
commit7c0715af6c5ee47fe786e9b63400961f0c3ae220 (patch)
treec145d3557c9730951cb870474e66a183a8d329c9
parent91edc13bf8a83dd024f9ce4e0ad2246202545a38 (diff)
Properly initialize TLS var
-rw-r--r--src/core/client_config/subchannel_index.c2
m---------third_party/nanopb0
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/client_config/subchannel_index.c b/src/core/client_config/subchannel_index.c
index f78a7fd588..3f948998f9 100644
--- a/src/core/client_config/subchannel_index.c
+++ b/src/core/client_config/subchannel_index.c
@@ -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,
diff --git a/third_party/nanopb b/third_party/nanopb
-Subproject f8ac463766281625ad710900479130c7fcb4d63
+Subproject 5497a1dfc91a86965383cdd1652e34834540043