|
|
@ -130,8 +130,8 @@ static int is_stack_running_on_compute_engine(void) { |
|
|
|
gpr_mu_lock(g_polling_mu); |
|
|
|
gpr_mu_lock(g_polling_mu); |
|
|
|
while (!detector.is_done) { |
|
|
|
while (!detector.is_done) { |
|
|
|
grpc_pollset_worker *worker = NULL; |
|
|
|
grpc_pollset_worker *worker = NULL; |
|
|
|
grpc_pollset_work(&exec_ctx, grpc_polling_entity_pollset(&detector.pollent), &worker, |
|
|
|
grpc_pollset_work(&exec_ctx, grpc_polling_entity_pollset(&detector.pollent), |
|
|
|
gpr_now(GPR_CLOCK_MONOTONIC), |
|
|
|
&worker, gpr_now(GPR_CLOCK_MONOTONIC), |
|
|
|
gpr_inf_future(GPR_CLOCK_MONOTONIC)); |
|
|
|
gpr_inf_future(GPR_CLOCK_MONOTONIC)); |
|
|
|
} |
|
|
|
} |
|
|
|
gpr_mu_unlock(g_polling_mu); |
|
|
|
gpr_mu_unlock(g_polling_mu); |
|
|
@ -139,7 +139,8 @@ static int is_stack_running_on_compute_engine(void) { |
|
|
|
grpc_httpcli_context_destroy(&context); |
|
|
|
grpc_httpcli_context_destroy(&context); |
|
|
|
grpc_closure_init(&destroy_closure, destroy_pollset, |
|
|
|
grpc_closure_init(&destroy_closure, destroy_pollset, |
|
|
|
grpc_polling_entity_pollset(&detector.pollent)); |
|
|
|
grpc_polling_entity_pollset(&detector.pollent)); |
|
|
|
grpc_pollset_shutdown(&exec_ctx, grpc_polling_entity_pollset(&detector.pollent), |
|
|
|
grpc_pollset_shutdown(&exec_ctx, |
|
|
|
|
|
|
|
grpc_polling_entity_pollset(&detector.pollent), |
|
|
|
&destroy_closure); |
|
|
|
&destroy_closure); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
g_polling_mu = NULL; |
|
|
|
g_polling_mu = NULL; |
|
|
|