|
|
@ -86,9 +86,6 @@ class CompletionQueue { |
|
|
|
|
|
|
|
|
|
|
|
// Blocking (until deadline) read from queue.
|
|
|
|
// Blocking (until deadline) read from queue.
|
|
|
|
// Returns false if the queue is ready for destruction, true if event
|
|
|
|
// Returns false if the queue is ready for destruction, true if event
|
|
|
|
bool Next(void** tag, bool* ok) { |
|
|
|
|
|
|
|
return (AsyncNext(tag, ok, std::chrono::system_clock::time_point::max()) != |
|
|
|
|
|
|
|
SHUTDOWN); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool Next(void** tag, bool* ok) { |
|
|
|
bool Next(void** tag, bool* ok) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -119,20 +116,21 @@ class CompletionQueue { |
|
|
|
friend class ::grpc::ServerReaderWriter; |
|
|
|
friend class ::grpc::ServerReaderWriter; |
|
|
|
friend class ::grpc::Server; |
|
|
|
friend class ::grpc::Server; |
|
|
|
friend class ::grpc::ServerContext; |
|
|
|
friend class ::grpc::ServerContext; |
|
|
|
friend Status BlockingUnaryCall( |
|
|
|
friend Status BlockingUnaryCall(ChannelInterface* channel, |
|
|
|
ChannelInterface * channel, const RpcMethod& method, |
|
|
|
const RpcMethod& method, |
|
|
|
ClientContext* context, const grpc::protobuf::Message& request, |
|
|
|
ClientContext* context, |
|
|
|
|
|
|
|
const grpc::protobuf::Message& request, |
|
|
|
grpc::protobuf::Message* result); |
|
|
|
grpc::protobuf::Message* result); |
|
|
|
|
|
|
|
|
|
|
|
// Wraps grpc_completion_queue_pluck.
|
|
|
|
// Wraps grpc_completion_queue_pluck.
|
|
|
|
// Cannot be mixed with calls to Next().
|
|
|
|
// Cannot be mixed with calls to Next().
|
|
|
|
bool Pluck(CompletionQueueTag * tag); |
|
|
|
bool Pluck(CompletionQueueTag* tag); |
|
|
|
|
|
|
|
|
|
|
|
// Does a single polling pluck on tag
|
|
|
|
// Does a single polling pluck on tag
|
|
|
|
void TryPluck(CompletionQueueTag * tag); |
|
|
|
void TryPluck(CompletionQueueTag* tag); |
|
|
|
|
|
|
|
|
|
|
|
grpc_completion_queue* cq_; // owned
|
|
|
|
grpc_completion_queue* cq_; // owned
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} // namespace grpc
|
|
|
|
} // namespace grpc
|
|
|
|
|
|
|
|
|
|
|
|