mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18955 from maribu/core/mbox/fix-race
core/mbox: fix race condition
This commit is contained in:
commit
ad5f02d119
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user