GPR_TLS Macro fix, and windows resolve_address fix

pull/13058/head
Yash Tibrewal 7 years ago
parent 6fbe010851
commit 45b7ad5cf5
  1. 3
      include/grpc/support/tls_gcc.h
  2. 1
      src/core/lib/iomgr/resolve_address_windows.cc

@ -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) \

@ -51,6 +51,7 @@ typedef struct {
static grpc_error* blocking_resolve_address_impl(
const char* name, const char* default_port,
grpc_resolved_addresses** addresses) {
grpc_core::ExecCtx exec_ctx;
struct addrinfo hints;
struct addrinfo *result = NULL, *resp;
char* host;

Loading…
Cancel
Save