Merge pull request #8427 from ctiller/lock-cycle

Avoid TSAN reported lock cycle
reviewable/pr8239/r1
Craig Tiller 8 years ago committed by GitHub
commit 70ee74c479
  1. 5
      test/core/iomgr/tcp_server_posix_test.c

@ -118,8 +118,11 @@ static void on_connect(grpc_exec_ctx *exec_ctx, void *arg, grpc_endpoint *tcp,
grpc_endpoint_shutdown(exec_ctx, tcp);
grpc_endpoint_destroy(exec_ctx, tcp);
on_connect_result temp_result;
on_connect_result_set(&temp_result, acceptor);
gpr_mu_lock(g_mu);
on_connect_result_set(&g_result, acceptor);
g_result = temp_result;
g_nconnects++;
GPR_ASSERT(
GRPC_LOG_IF_ERROR("pollset_kick", grpc_pollset_kick(g_pollset, NULL)));

Loading…
Cancel
Save