aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpp/client/channel.h')
-rw-r--r--src/cpp/client/channel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpp/client/channel.h b/src/cpp/client/channel.h
index fa3aedc9eb..4dc6723778 100644
--- a/src/cpp/client/channel.h
+++ b/src/cpp/client/channel.h
@@ -71,15 +71,24 @@ class Channel GRPC_FINAL : public GrpcLibrary, public ChannelInterface {
bool WaitForStateChange(grpc_connectivity_state last_observed,
gpr_timespec deadline) GRPC_OVERRIDE;
+ bool WaitForState(grpc_connectivity_state target_state,
+ gpr_timespec deadline) GRPC_OVERRIDE;
+
#ifndef GRPC_CXX0X_NO_CHRONO
void NotifyOnStateChange(
grpc_connectivity_state last_observed,
const std::chrono::system_clock::time_point& deadline,
CompletionQueue* cq, void* tag) GRPC_OVERRIDE;
+
bool WaitForStateChange(
grpc_connectivity_state last_observed,
const std::chrono::system_clock::time_point& deadline) GRPC_OVERRIDE;
+
+ bool WaitForState(grpc_connectivity_state target_state,
+ const std::chrono::system_clock::time_point& deadline)
+ GRPC_OVERRIDE;
#endif // !GRPC_CXX0X_NO_CHRONO
+
private:
const grpc::string host_;
grpc_channel* const c_channel_; // owned