Revert "Allow nullptr to be passed in if user doesn't care about tag"

This reverts commit 4cba0ca39c.
pull/1130/head
vjpai 10 years ago
parent 4cba0ca39c
commit df9f764bf8
  1. 6
      src/cpp/common/completion_queue.cc

@ -59,14 +59,10 @@ class EventDeleter {
CompletionQueue::NextStatus CompletionQueue::AsyncNextInternal(
void** tag, bool* ok, gpr_timespec deadline) {
std::unique_ptr<grpc_event, EventDeleter> ev;
void *dummy;
if (tag == nullptr) // If user doesn't care
tag = &dummy; // Need to pass down something
for (;;) {
ev.reset(grpc_completion_queue_next(cq_, deadline));
if (!ev) { // got a NULL back because deadline passed
if (!ev) { /* got a NULL back because deadline passed */
return TIMEOUT;
}
if (ev->type == GRPC_QUEUE_SHUTDOWN) {

Loading…
Cancel
Save