Skip to content
Snippets Groups Projects
Commit 96bcf021 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Merge pull request #3551 from ctiller/objc

Initialize/destroy TLS members - to fix iOS build
parents e069b277 926c0e99
Branches
Tags
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment