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.h30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/cpp/client/channel.h b/src/cpp/client/channel.h
index 4dc6723778..cb8e8d98d2 100644
--- a/src/cpp/client/channel.h
+++ b/src/cpp/client/channel.h
@@ -64,32 +64,14 @@ class Channel GRPC_FINAL : public GrpcLibrary, public ChannelInterface {
grpc_connectivity_state GetState(bool try_to_connect) GRPC_OVERRIDE;
- void NotifyOnStateChange(grpc_connectivity_state last_observed,
- gpr_timespec deadline,
- CompletionQueue* cq, void* tag) GRPC_OVERRIDE;
-
- 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;
+ private:
+ void NotifyOnStateChangeImpl(grpc_connectivity_state last_observed,
+ gpr_timespec deadline, CompletionQueue* cq,
+ void* tag) GRPC_OVERRIDE;
- bool WaitForState(grpc_connectivity_state target_state,
- const std::chrono::system_clock::time_point& deadline)
- GRPC_OVERRIDE;
-#endif // !GRPC_CXX0X_NO_CHRONO
+ bool WaitForStateChangeImpl(grpc_connectivity_state last_observed,
+ gpr_timespec deadline) GRPC_OVERRIDE;
- private:
const grpc::string host_;
grpc_channel* const c_channel_; // owned
};