aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-08-14 09:37:58 -0700
committerGravatar GitHub <noreply@github.com>2018-08-14 09:37:58 -0700
commit4b42288905f5083613f8b066d672f0335f70f477 (patch)
tree0f65b880cf485bfd52032fffc7e19d6b0d561a91 /include/grpc/grpc.h
parentc175652de006a4bdb279cfaa0c43836e60ae8fbf (diff)
parenta59e48e889f6afd6f915fce5d0638f0a3697df06 (diff)
Merge pull request #16302 from vjpai/callback_cq
EXPERIMENTAL: Infrastructure for callback-based core CQ
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r--include/grpc/grpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index dc22008932..897b89851a 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -101,6 +101,12 @@ GRPCAPI grpc_completion_queue* grpc_completion_queue_create_for_next(
GRPCAPI grpc_completion_queue* grpc_completion_queue_create_for_pluck(
void* reserved);
+/** Helper function to create a completion queue with grpc_cq_completion_type
+ of GRPC_CQ_CALLBACK and grpc_cq_polling_type of GRPC_CQ_DEFAULT_POLLING.
+ This function is experimental. */
+GRPCAPI grpc_completion_queue* grpc_completion_queue_create_for_callback(
+ void* shutdown_callback, void* reserved);
+
/** Create a completion queue */
GRPCAPI grpc_completion_queue* grpc_completion_queue_create(
const grpc_completion_queue_factory* factory,