forgot to add completion_queue.h doh!

pull/14517/head
makdharma 7 years ago
parent d10a885922
commit 1d603248f2
  1. 6
      include/grpcpp/impl/codegen/completion_queue.h

@ -165,7 +165,11 @@ class CompletionQueue : private GrpcLibraryCodegen {
///
/// \return true if got an event, false if the queue is fully drained and
/// shut down.
virtual bool Next(void** tag, bool* ok);
bool Next(void** tag, bool* ok) {
return (AsyncNextInternal(tag, ok,
g_core_codegen_interface->gpr_inf_future(
GPR_CLOCK_REALTIME)) != SHUTDOWN);
}
/// Read from the queue, blocking up to \a deadline (or the queue's shutdown).
/// Both \a tag and \a ok are updated upon success (if an event is available

Loading…
Cancel
Save