Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H
20 #define GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H
42 #if GRPC_ALLOW_EXCEPTIONS
48 #else // GRPC_ALLOW_EXCEPTIONS
50 #endif // GRPC_ALLOW_EXCEPTIONS
53 template <
class Reactor,
class Func,
class...
Args>
55 #if GRPC_ALLOW_EXCEPTIONS
57 return func(std::forward<Args>(
args)...);
62 #else // GRPC_ALLOW_EXCEPTIONS
63 return func(std::forward<Args>(
args)...);
64 #endif // GRPC_ALLOW_EXCEPTIONS
74 static void operator delete(
void* , std::size_t
size) {
116 void* ignored =
ops_;
140 static void operator delete(
void* , std::size_t
size) {
176 if (
call_ !=
nullptr) {
204 void* ignored =
ops_;
222 #endif // GRPCPP_IMPL_CODEGEN_CALLBACK_COMMON_H
~CallbackWithSuccessTag()
std::function< void(bool)> func_
static void StaticRun(grpc_completion_queue_functor *cb, int ok)
CompletionQueueTag * ops()
CoreCodegenInterface * g_core_codegen_interface
std::function< void(Status)> func_
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
void(* functor_run)(struct grpc_completion_queue_functor *, int)
FuncOutput(*)(const void *, FuncInput) Func
struct grpc_call grpc_call
static void StaticRun(grpc_completion_queue_functor *cb, int ok)
virtual bool FinalizeResult(void **tag, bool *status)=0
CompletionQueueTag * ops_
CompletionQueueTag * ops_
CallbackWithStatusTag(grpc_call *call, std::function< void(Status)> f, CompletionQueueTag *ops)
void Set(grpc_call *call, std::function< void(bool)> f, CompletionQueueTag *ops, bool can_inline)
void CatchingCallback(Func &&func, Args &&... args)
An exception-safe way of invoking a user-specified callback function.
GRPC_CUSTOM_UTIL_STATUS Status
virtual void grpc_call_ref(grpc_call *call)=0
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
An interface allowing implementors to process and filter event tags.
Reactor * CatchingReactorGetter(Func &&func, Args &&... args)
virtual void grpc_call_unref(grpc_call *call)=0
OPENSSL_EXPORT pem_password_cb * cb
CallbackWithSuccessTag & operator=(const CallbackWithSuccessTag &)=delete
#define GPR_CODEGEN_DEBUG_ASSERT(x)
Codegen specific version of GPR_DEBUG_ASSERT.
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:43