Merge pull request #6 from sreecha/cq_create_api_changes_php

PHP: Completion queue create API changes
reviewable/pr9972/r1
Sree Kuchibhotla 8 years ago committed by GitHub
commit 2bfa64e518
  1. 7
      src/php/ext/grpc/completion_queue.c

@ -38,13 +38,12 @@
grpc_completion_queue *completion_queue;
void grpc_php_init_completion_queue(TSRMLS_D) {
completion_queue = grpc_completion_queue_create(NULL);
completion_queue = grpc_completion_queue_create(GRPC_CQ_PLUCK,
GRPC_CQ_DEFAULT_POLLING,
NULL);
}
void grpc_php_shutdown_completion_queue(TSRMLS_D) {
grpc_completion_queue_shutdown(completion_queue);
while (grpc_completion_queue_next(completion_queue,
gpr_inf_future(GPR_CLOCK_REALTIME),
NULL).type != GRPC_QUEUE_SHUTDOWN);
grpc_completion_queue_destroy(completion_queue);
}

Loading…
Cancel
Save