Initialize/destroy TLS members - to fix iOS build

pull/3551/head
Craig Tiller 10 years ago
parent 3a321282da
commit 926c0e99f8
  1. 2
      src/core/iomgr/pollset_posix.c

@ -119,11 +119,13 @@ void grpc_pollset_kick(grpc_pollset *p, grpc_pollset_worker *specific_worker) {
void grpc_pollset_global_init(void) {
gpr_tls_init(&g_current_thread_poller);
gpr_tls_init(&g_current_thread_worker);
grpc_wakeup_fd_global_init();
}
void grpc_pollset_global_shutdown(void) {
gpr_tls_destroy(&g_current_thread_poller);
gpr_tls_destroy(&g_current_thread_worker);
grpc_wakeup_fd_global_destroy();
}

Loading…
Cancel
Save