diff options
author | David Garcia Quintas <dgq@google.com> | 2016-04-27 18:40:50 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-04-27 18:40:50 -0700 |
commit | d312a0b866b0223bf9d5a2c88530a5cd7005c990 (patch) | |
tree | f13b5748c9d83c6177b8ae6f22422af29ef9d803 /src/core/ext/client_config/lb_policy.h | |
parent | 879b3b9efa634ab683fccc96261af6e7838e6b31 (diff) |
Smarter pollset/pollset_set propagation
For some definition of "smart"... client_channel simply passes along
pollset/pollset_set, removing the need to instantiate a pollset_set in
the subchannel_call_holder: it's now up to the LB policies to handle the
pollset/pollset_set.
Diffstat (limited to 'src/core/ext/client_config/lb_policy.h')
-rw-r--r-- | src/core/ext/client_config/lb_policy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ext/client_config/lb_policy.h b/src/core/ext/client_config/lb_policy.h index d5c578836b..e9bb1850e7 100644 --- a/src/core/ext/client_config/lb_policy.h +++ b/src/core/ext/client_config/lb_policy.h @@ -59,7 +59,7 @@ struct grpc_lb_policy_vtable { /** implement grpc_lb_policy_pick */ int (*pick)(grpc_exec_ctx *exec_ctx, grpc_lb_policy *policy, - grpc_pollset_set *pollset_set, + grpc_pollset *pollset, grpc_pollset_set *pollset_set_alternative, grpc_metadata_batch *initial_metadata, uint32_t initial_metadata_flags, grpc_connected_subchannel **target, grpc_closure *on_complete); @@ -125,7 +125,8 @@ void grpc_lb_policy_init(grpc_lb_policy *policy, \a target. Picking can be asynchronous. Any IO should be done under \a pollset. */ int grpc_lb_policy_pick(grpc_exec_ctx *exec_ctx, grpc_lb_policy *policy, - grpc_pollset_set *pollset_set, + grpc_pollset *pollset, + grpc_pollset_set *pollset_set_alternative, grpc_metadata_batch *initial_metadata, uint32_t initial_metadata_flags, grpc_connected_subchannel **target, |