diff options
author | Craig Tiller <ctiller@google.com> | 2016-02-25 13:55:13 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-02-25 13:55:13 -0800 |
commit | 85371a2bb09dc955c35e194efb461ee3d374c128 (patch) | |
tree | d21de62c259ff3499f61e85527effa77cdc442fb /test/core/security/secure_endpoint_test.c | |
parent | 21679875659f382991f4c4e9e8bea34e93bc9b7f (diff) |
Change pollset mutex ownership
Diffstat (limited to 'test/core/security/secure_endpoint_test.c')
-rw-r--r-- | test/core/security/secure_endpoint_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/core/security/secure_endpoint_test.c b/test/core/security/secure_endpoint_test.c index 61543ada43..0e8c38a53e 100644 --- a/test/core/security/secure_endpoint_test.c +++ b/test/core/security/secure_endpoint_test.c @@ -45,7 +45,7 @@ #include "src/core/tsi/fake_transport_security.h" #include "test/core/util/test_config.h" -static gpr_mu g_mu; +static gpr_mu *g_mu; static grpc_pollset *g_pollset; static grpc_endpoint_test_fixture secure_endpoint_create_fixture_tcp_socketpair( @@ -183,9 +183,8 @@ int main(int argc, char **argv) { grpc_init(); g_pollset = gpr_malloc(grpc_pollset_size()); - gpr_mu_init(&g_mu); grpc_pollset_init(g_pollset, &g_mu); - grpc_endpoint_tests(configs[0], g_pollset, &g_mu); + grpc_endpoint_tests(configs[0], g_pollset, g_mu); test_leftover(configs[1], 1); grpc_closure_init(&destroyed, destroy_pollset, g_pollset); grpc_pollset_shutdown(&exec_ctx, g_pollset, &destroyed); @@ -193,7 +192,6 @@ int main(int argc, char **argv) { grpc_shutdown(); gpr_free(g_pollset); - gpr_mu_destroy(&g_mu); return 0; } |