Always fill "empty" on return from gpr_mpscq_pop_and_check_end

pull/14305/head
maxim-babenko 7 years ago committed by GitHub
parent 785dda80dc
commit f4470af132
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