aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/support
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-11-27 15:58:44 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2017-11-27 15:58:44 -0800
commit3285f4c7329bf4305133be74f88dd4b10d5e2052 (patch)
tree936ee957e2eaaa4ed16ac0e16feae6fdacf45499 /include/grpc/support
parent45b7ad5cf51ad97314d769ed70cfcda53d41b9d1 (diff)
Fix grpc_init by removing exec_ctx usage before init
Diffstat (limited to 'include/grpc/support')
-rw-r--r--include/grpc/support/tls_gcc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc/support/tls_gcc.h b/include/grpc/support/tls_gcc.h
index 136cb75dac..e0ef6b2789 100644
--- a/include/grpc/support/tls_gcc.h
+++ b/include/grpc/support/tls_gcc.h
@@ -40,12 +40,12 @@ struct gpr_gcc_thread_local {
/** Use GPR_TLS_CLASS_DECL to declare tls static variable members of a class.
* GPR_TLS_CLASS_DEF needs to be called to define this member. */
-#define GPR_TLS_CLASS_DECL(name) \
- static bool name##_inited; \
+#define GPR_TLS_CLASS_DECL(name) \
+ static bool name##_inited; \
static __thread struct gpr_gcc_thread_local name
#define GPR_TLS_CLASS_DEF(name) \
- bool name##_inited = false; \
+ bool name##_inited = false; \
__thread struct gpr_gcc_thread_local name = {0, &(name##_inited)}
#define gpr_tls_init(tls) \