Add a lock that seems to help

pull/1369/head
Craig Tiller 10 years ago
parent 4083d305d5
commit 4d8f268028
  1. 2
      src/core/surface/completion_queue.c

@ -401,7 +401,9 @@ static void on_pollset_destroy_done(void *arg) {
} }
void grpc_completion_queue_destroy(grpc_completion_queue *cc) { void grpc_completion_queue_destroy(grpc_completion_queue *cc) {
gpr_mu_lock(GRPC_POLLSET_MU(&cc->pollset));
GPR_ASSERT(cc->queue == NULL); GPR_ASSERT(cc->queue == NULL);
gpr_mu_unlock(GRPC_POLLSET_MU(&cc->pollset));
grpc_pollset_shutdown(&cc->pollset, on_pollset_destroy_done, cc); grpc_pollset_shutdown(&cc->pollset, on_pollset_destroy_done, cc);
} }

Loading…
Cancel
Save