Go to the source code of this file.
|
#define | GRPC_CLOSURE_INIT(closure, cb, cb_arg, scheduler) grpc_closure_init(__FILE__, __LINE__, closure, cb, cb_arg) |
| Initializes closure with cb and cb_arg. More...
|
|
#define | GRPC_CLOSURE_CREATE(cb, cb_arg, scheduler) grpc_closure_create(__FILE__, __LINE__, cb, cb_arg) |
|
#define | GRPC_CLOSURE_LIST_INIT { nullptr, nullptr } |
|
|
grpc_closure * | grpc_closure_init (const char *file, int line, grpc_closure *closure, grpc_iomgr_cb_func cb, void *cb_arg) |
|
void | closure_impl::closure_wrapper (void *arg, grpc_error *error) |
|
grpc_closure * | grpc_closure_create (const char *file, int line, grpc_iomgr_cb_func cb, void *cb_arg) |
|
void | grpc_closure_list_init (grpc_closure_list *closure_list) |
|
bool | grpc_closure_list_append (grpc_closure_list *closure_list, grpc_closure *closure, grpc_error *error) |
| add closure to the end of list and set closure's result to error Returns true if list becomes non-empty More...
|
|
void | grpc_closure_list_fail_all (grpc_closure_list *list, grpc_error *forced_failure) |
| force all success bits in list to false More...
|
|
void | grpc_closure_list_move (grpc_closure_list *src, grpc_closure_list *dst) |
| append all closures from src to dst and empty src. More...
|
|
bool | grpc_closure_list_empty (grpc_closure_list closure_list) |
| return whether list is empty. More...
|
|
◆ GRPC_CLOSURE_CREATE
#define GRPC_CLOSURE_CREATE |
( |
|
cb, |
|
|
|
cb_arg, |
|
|
|
scheduler |
|
) |
| grpc_closure_create(__FILE__, __LINE__, cb, cb_arg) |
◆ GRPC_CLOSURE_INIT
#define GRPC_CLOSURE_INIT |
( |
|
closure, |
|
|
|
cb, |
|
|
|
cb_arg, |
|
|
|
scheduler |
|
) |
| grpc_closure_init(__FILE__, __LINE__, closure, cb, cb_arg) |
Initializes closure with cb and cb_arg.
Returns closure.
◆ GRPC_CLOSURE_LIST_INIT
#define GRPC_CLOSURE_LIST_INIT { nullptr, nullptr } |
◆ grpc_closure
◆ grpc_closure_list
◆ grpc_iomgr_cb_func
typedef void(* grpc_iomgr_cb_func) (void *arg, grpc_error *error) |
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 |
◆ grpc_closure_create()
◆ grpc_closure_init()
◆ grpc_closure_list_append()
add closure to the end of list and set closure's result to error Returns true if list becomes non-empty
◆ grpc_closure_list_empty()
return whether list is empty.
◆ grpc_closure_list_fail_all()
force all success bits in list to false
◆ grpc_closure_list_init()
◆ grpc_closure_list_move()
append all closures from src to dst and empty src.
◆ grpc_trace_closure