aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpcpp/channel.h
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-08-21 14:32:13 -0700
committerGravatar Vijay Pai <vpai@google.com>2018-08-30 15:46:27 -0700
commit8bf52535d1008a3f38e70d1387846f0e942761b5 (patch)
tree4d162e97b5917cdd9373f55a02b34284e4354e55 /include/grpcpp/channel.h
parentd766b9a2a40fd3002d9b93c97525a868c9d92dc4 (diff)
Provide a generic client-side unary callback API
Diffstat (limited to 'include/grpcpp/channel.h')
-rw-r--r--include/grpcpp/channel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpcpp/channel.h b/include/grpcpp/channel.h
index fed02bf7bc..58a6f51664 100644
--- a/include/grpcpp/channel.h
+++ b/include/grpcpp/channel.h
@@ -78,8 +78,13 @@ class Channel final : public ChannelInterface,
bool WaitForStateChangeImpl(grpc_connectivity_state last_observed,
gpr_timespec deadline) override;
+ CompletionQueue* CallbackCQ() override;
+
const grpc::string host_;
grpc_channel* const c_channel_; // owned
+
+ CompletionQueue* callback_cq_ = nullptr;
+ std::mutex mu_;
};
} // namespace grpc