Skip to content

Commit

Permalink
Merge pull request #18955 from maribu/core/mbox/fix-race
Browse files Browse the repository at this point in the history
core/mbox: fix race condition
  • Loading branch information
kaspar030 authored Nov 23, 2022
2 parents 232c70b + 42b9334 commit ad5f02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/mbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int _mbox_put(mbox_t *mbox, msg_t *msg, int blocking)
return 1;
}
else {
if (cib_full(&mbox->cib)) {
while (cib_full(&mbox->cib)) {
if (blocking) {
_wait(&mbox->writers, irqstate);
irqstate = irq_disable();
Expand Down

0 comments on commit ad5f02d

Please sign in to comment.