Merge pull request #14401 from maxim-babenko/master

Always fill "empty" on return from gpr_mpscq_pop_and_check_end
pull/14458/head
Noah Eisen 7 years ago committed by GitHub
commit c3833828e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/core/lib/gpr/mpscq.cc

@ -71,6 +71,7 @@ gpr_mpscq_node* gpr_mpscq_pop_and_check_end(gpr_mpscq* q, bool* empty) {
gpr_mpscq_push(q, &q->stub);
next = (gpr_mpscq_node*)gpr_atm_acq_load(&tail->next);
if (next != nullptr) {
*empty = false;
q->tail = next;
return tail;
}

Loading…
Cancel
Save