diff options
author | 2018-08-14 09:37:58 -0700 | |
---|---|---|
committer | 2018-08-14 09:37:58 -0700 | |
commit | 4b42288905f5083613f8b066d672f0335f70f477 (patch) | |
tree | 0f65b880cf485bfd52032fffc7e19d6b0d561a91 /include/grpc/grpc.h | |
parent | c175652de006a4bdb279cfaa0c43836e60ae8fbf (diff) | |
parent | a59e48e889f6afd6f915fce5d0638f0a3697df06 (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.h | 6 |
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, |