Remaning logical thread references

reviewable/pr21361/r8
Yash Tibrewal 5 years ago
parent 1a00b752f4
commit 066550d6ee
  1. 4
      src/core/ext/filters/client_channel/client_channel.cc
  2. 2
      src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_libuv.cc

@ -1054,12 +1054,12 @@ class ChannelData::SubchannelWrapper : public SubchannelInterface {
state_(new_state),
connected_subchannel_(std::move(connected_subchannel)) {
parent_->parent_->chand_->work_serializer_->Run(
[this]() { ApplyUpdateInControlPlaneLogicalThread(); },
[this]() { ApplyUpdateInControlPlaneWorkSerializer(); },
DEBUG_LOCATION);
}
private:
void ApplyUpdateInControlPlaneLogicalThread() {
void ApplyUpdateInControlPlaneWorkSerializer() {
if (GRPC_TRACE_FLAG_ENABLED(grpc_client_channel_routing_trace)) {
gpr_log(GPR_INFO,
"chand=%p: processing connectivity change in work serializer "

@ -161,7 +161,7 @@ class GrpcPolledFdFactoryLibuv : public GrpcPolledFdFactory {
GrpcPolledFd* NewGrpcPolledFdLocked(
ares_socket_t as, grpc_pollset_set* driver_pollset_set,
std::shared_ptr<WorkSerializer> work_serializer) override {
return new GrpcPolledFdLibuv(as, work_serializer);
return new GrpcPolledFdLibuv(as, std::move(work_serializer));
}
void ConfigureAresChannelLocked(ares_channel channel) override {}

Loading…
Cancel
Save