19 #ifndef GRPC_CORE_LIB_SURFACE_COMPLETION_QUEUE_H 20 #define GRPC_CORE_LIB_SURFACE_COMPLETION_QUEUE_H 55 const char* file,
int line);
57 const char* file,
int line);
58 #define GRPC_CQ_INTERNAL_REF(cc, reason) \ 59 grpc_cq_internal_ref(cc, reason, __FILE__, __LINE__) 60 #define GRPC_CQ_INTERNAL_UNREF(cc, reason) \ 61 grpc_cq_internal_unref(cc, reason, __FILE__, __LINE__) 65 #define GRPC_CQ_INTERNAL_REF(cc, reason) grpc_cq_internal_ref(cc) 66 #define GRPC_CQ_INTERNAL_UNREF(cc, reason) grpc_cq_internal_unref(cc) 83 bool internal =
false);
grpc_core::DebugOnlyTraceFlag grpc_trace_cq_refcount
void(* done)(void *done_arg, struct grpc_cq_completion *c)
done callback - called when this queue element is no longer needed by the completion queue ...
Definition: completion_queue.h:47
void grpc_cq_global_init()
bool grpc_cq_can_listen(grpc_completion_queue *cc)
grpc_pollset * grpc_cq_pollset(grpc_completion_queue *cc)
grpc_completion_queue * grpc_completion_queue_create_internal(grpc_cq_completion_type completion_type, grpc_cq_polling_type polling_type, grpc_experimental_completion_queue_functor *shutdown_callback)
struct grpc_cq_completion grpc_cq_completion
void grpc_cq_end_op(grpc_completion_queue *cc, void *tag, grpc_error *error, void(*done)(void *done_arg, grpc_cq_completion *storage), void *done_arg, grpc_cq_completion *storage, bool internal=false)
Definition: error_internal.h:39
bool grpc_cq_begin_op(grpc_completion_queue *cc, void *tag)
void grpc_cq_internal_ref(grpc_completion_queue *cc, const char *reason, const char *file, int line)
Definition: completion_queue.h:39
grpc_core::DebugOnlyTraceFlag grpc_trace_pending_tags
grpc_core::ManualConstructor< grpc_core::MultiProducerSingleConsumerQueue > node
Definition: completion_queue.h:41
void * done_arg
Definition: completion_queue.h:48
grpc_cq_completion_type
Specifies the type of APIs to use to pop events from the completion queue.
Definition: grpc_types.h:706
grpc_cq_polling_type
Completion queues internally MAY maintain a set of file descriptors in a structure called 'pollset'...
Definition: grpc_types.h:688
grpc_core::TraceFlag grpc_trace_operation_failures
uintptr_t next
next pointer; low bit is used to indicate success or not
Definition: completion_queue.h:50
struct grpc_pollset grpc_pollset
Definition: pollset.h:38
grpc_core::TraceFlag grpc_cq_pluck_trace
struct grpc_completion_queue grpc_completion_queue
Completion Queues enable notification of the completion of asynchronous actions.
Definition: grpc_types.h:56
grpc_cq_completion_type grpc_get_cq_completion_type(grpc_completion_queue *cc)
void grpc_cq_internal_unref(grpc_completion_queue *cc, const char *reason, const char *file, int line)
EXPERIMENTAL: Specifies an interface class to be used as a tag for callback-based completion queues...
Definition: grpc_types.h:722
void * tag
user supplied tag
Definition: completion_queue.h:44
int grpc_get_cq_poll_num(grpc_completion_queue *cc)