diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-11-27 15:35:21 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-11-27 15:35:21 -0800 |
commit | 45b7ad5cf51ad97314d769ed70cfcda53d41b9d1 (patch) | |
tree | d064d8a98d9c4f7289840f221b23caf97329944b /include/grpc/support | |
parent | 6fbe010851bd2041e98468f5befef5d6e3d598b0 (diff) |
GPR_TLS Macro fix, and windows resolve_address fix
Diffstat (limited to 'include/grpc/support')
-rw-r--r-- | include/grpc/support/tls_gcc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/support/tls_gcc.h b/include/grpc/support/tls_gcc.h index c926400e8e..136cb75dac 100644 --- a/include/grpc/support/tls_gcc.h +++ b/include/grpc/support/tls_gcc.h @@ -41,10 +41,11 @@ 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 = false; \ + static bool name##_inited; \ static __thread struct gpr_gcc_thread_local name #define GPR_TLS_CLASS_DEF(name) \ + bool name##_inited = false; \ __thread struct gpr_gcc_thread_local name = {0, &(name##_inited)} #define gpr_tls_init(tls) \ |