|
static int | add_plucker (grpc_completion_queue *cq, void *tag, grpc_pollset_worker **worker) |
|
static bool | cq_begin_op_for_callback (grpc_completion_queue *cq, void *tag) |
|
static bool | cq_begin_op_for_next (grpc_completion_queue *cq, void *tag) |
|
static bool | cq_begin_op_for_pluck (grpc_completion_queue *cq, void *tag) |
|
static void | cq_check_tag (grpc_completion_queue *cq, void *tag, bool lock_cq) |
|
static void | cq_destroy_callback (void *data) |
|
static void | cq_destroy_next (void *data) |
|
static void | cq_destroy_pluck (void *data) |
|
static void | cq_end_op_for_callback (grpc_completion_queue *cq, void *tag, grpc_error_handle error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal) |
|
static void | cq_end_op_for_next (grpc_completion_queue *cq, void *tag, grpc_error_handle error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal) |
|
static void | cq_end_op_for_pluck (grpc_completion_queue *cq, void *tag, grpc_error_handle error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal) |
|
static void | cq_finish_shutdown_callback (grpc_completion_queue *cq) |
|
static void | cq_finish_shutdown_next (grpc_completion_queue *cq) |
|
static void | cq_finish_shutdown_pluck (grpc_completion_queue *cq) |
|
static void | cq_init_callback (void *data, grpc_completion_queue_functor *shutdown_callback) |
|
static void | cq_init_next (void *data, grpc_completion_queue_functor *shutdown_callback) |
|
static void | cq_init_pluck (void *data, grpc_completion_queue_functor *shutdown_callback) |
|
static grpc_event | cq_next (grpc_completion_queue *cq, gpr_timespec deadline, void *reserved) |
|
static grpc_event | cq_pluck (grpc_completion_queue *cq, void *tag, gpr_timespec deadline, void *reserved) |
|
static void | cq_shutdown_callback (grpc_completion_queue *cq) |
|
static void | cq_shutdown_next (grpc_completion_queue *cq) |
|
static void | cq_shutdown_pluck (grpc_completion_queue *cq) |
|
static void | del_plucker (grpc_completion_queue *cq, void *tag, grpc_pollset_worker **worker) |
|
static void | dump_pending_tags (grpc_completion_queue *cq) |
|
static void | functor_callback (void *arg, grpc_error_handle error) |
|
grpc_completion_queue * | grpc_completion_queue_create_internal (grpc_cq_completion_type completion_type, grpc_cq_polling_type polling_type, grpc_completion_queue_functor *shutdown_callback) |
|
void | grpc_completion_queue_destroy (grpc_completion_queue *cq) |
|
grpc_event | grpc_completion_queue_next (grpc_completion_queue *cq, gpr_timespec deadline, void *reserved) |
|
grpc_event | grpc_completion_queue_pluck (grpc_completion_queue *cq, void *tag, gpr_timespec deadline, void *reserved) |
|
void | grpc_completion_queue_shutdown (grpc_completion_queue *cq) |
|
int | grpc_completion_queue_thread_local_cache_flush (grpc_completion_queue *cq, void **tag, int *ok) |
|
void | grpc_completion_queue_thread_local_cache_init (grpc_completion_queue *cq) |
|
bool | grpc_cq_begin_op (grpc_completion_queue *cq, void *tag) |
|
bool | grpc_cq_can_listen (grpc_completion_queue *cq) |
|
void | grpc_cq_end_op (grpc_completion_queue *cq, void *tag, grpc_error_handle error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal) |
|
void | grpc_cq_global_init () |
|
void | grpc_cq_internal_ref (grpc_completion_queue *cq, const char *reason, const char *file, int line) |
|
void | grpc_cq_internal_unref (grpc_completion_queue *cq, const char *reason, const char *file, int line) |
|
grpc_pollset * | grpc_cq_pollset (grpc_completion_queue *cq) |
|
grpc_cq_completion_type | grpc_get_cq_completion_type (grpc_completion_queue *cq) |
|
int | grpc_get_cq_poll_num (grpc_completion_queue *cq) |
|
static void | on_pollset_shutdown_done (void *arg, grpc_error_handle error) |
|
Blocks until an event is available, the completion queue is being shut down, or deadline is reached.
Returns a grpc_event with type GRPC_QUEUE_TIMEOUT on timeout, otherwise a grpc_event describing the event that occurred.
Callers must not call grpc_completion_queue_next and grpc_completion_queue_pluck simultaneously on the same completion queue.
Definition at line 1133 of file completion_queue.cc.
Blocks until an event with tag 'tag' is available, the completion queue is being shutdown or deadline is reached.
Returns a grpc_event with type GRPC_QUEUE_TIMEOUT on timeout, otherwise a grpc_event describing the event that occurred.
Callers must not call grpc_completion_queue_next and grpc_completion_queue_pluck simultaneously on the same completion queue.
Completion queues support a maximum of GRPC_MAX_COMPLETION_QUEUE_PLUCKERS concurrently executing plucks at any time.
Definition at line 1328 of file completion_queue.cc.