Go to the source code of this file.
|
#define | GRPC_CLOSURE_CREATE(cb, cb_arg, scheduler) grpc_closure_create(__FILE__, __LINE__, cb, cb_arg) |
|
#define | GRPC_CLOSURE_INIT(closure, cb, cb_arg, scheduler) grpc_closure_init(__FILE__, __LINE__, closure, cb, cb_arg) |
|
#define | GRPC_CLOSURE_LIST_INIT { nullptr, nullptr } |
|
|
void | closure_impl::closure_wrapper (void *arg, grpc_error_handle error) |
|
grpc_closure * | grpc_closure_create (const char *file, int line, grpc_iomgr_cb_func cb, void *cb_arg) |
|
grpc_closure * | grpc_closure_init (const char *file, int line, grpc_closure *closure, grpc_iomgr_cb_func cb, void *cb_arg) |
|
bool | grpc_closure_list_append (grpc_closure_list *closure_list, grpc_closure *closure) |
|
bool | grpc_closure_list_append (grpc_closure_list *closure_list, grpc_closure *closure, grpc_error_handle error) |
|
bool | grpc_closure_list_empty (grpc_closure_list closure_list) |
|
void | grpc_closure_list_fail_all (grpc_closure_list *list, grpc_error_handle forced_failure) |
|
void | grpc_closure_list_init (grpc_closure_list *closure_list) |
|
void | grpc_closure_list_move (grpc_closure_list *src, grpc_closure_list *dst) |
|
◆ GRPC_CLOSURE_CREATE
◆ GRPC_CLOSURE_INIT
Initializes closure with cb and cb_arg. Returns closure.
Definition at line 115 of file closure.h.
◆ GRPC_CLOSURE_LIST_INIT
#define GRPC_CLOSURE_LIST_INIT { nullptr, nullptr } |
◆ grpc_closure
◆ grpc_closure_list
◆ grpc_iomgr_cb_func
gRPC Callback definition.
- Parameters
-
arg | Arbitrary input. |
error | GRPC_ERROR_NONE if no error occurred, otherwise some grpc_error describing what went wrong. Error contract: it is not the cb's job to unref this error; the closure scheduler will do that after the cb returns |
Definition at line 53 of file closure.h.
◆ grpc_closure_create()
◆ grpc_closure_init()
◆ grpc_closure_list_append() [1/2]
add closure to the end of list Returns true if list becomes non-empty
Definition at line 176 of file closure.h.
◆ grpc_closure_list_append() [2/2]
add closure to the end of list and set closure's result to error Returns true if list becomes non-empty
Definition at line 195 of file closure.h.
◆ grpc_closure_list_empty()
return whether list is empty.
Definition at line 243 of file closure.h.
◆ grpc_closure_list_fail_all()
force all success bits in list to false
Definition at line 211 of file closure.h.
◆ grpc_closure_list_init()
◆ grpc_closure_list_move()
append all closures from src to dst and empty src.
Definition at line 228 of file closure.h.
◆ grpc_trace_closure