From 556ed569c87f5ac1da899a40482206409c984f37 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 13 Apr 2017 12:14:11 +0000 Subject: Fixed problems in new mailboxes implementation. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10156 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/src/chmboxes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/common/oslib/src/chmboxes.c b/os/common/oslib/src/chmboxes.c index 36e842821..8e543bf4d 100644 --- a/os/common/oslib/src/chmboxes.c +++ b/os/common/oslib/src/chmboxes.c @@ -213,6 +213,7 @@ msg_t chMBPostS(mailbox_t *mbp, msg_t msg, systime_t timeout) { /* If there is a reader waiting then makes it ready.*/ chThdDequeueNextI(&mbp->qr, MSG_OK); + chSchRescheduleS(); return MSG_OK; } @@ -337,6 +338,7 @@ msg_t chMBPostAheadS(mailbox_t *mbp, msg_t msg, systime_t timeout) { /* If there is a reader waiting then makes it ready.*/ chThdDequeueNextI(&mbp->qr, MSG_OK); + chSchRescheduleS(); return MSG_OK; } @@ -461,6 +463,7 @@ msg_t chMBFetchS(mailbox_t *mbp, msg_t *msgp, systime_t timeout) { /* If there is a writer waiting then makes it ready.*/ chThdDequeueNextI(&mbp->qw, MSG_OK); + chSchRescheduleS(); return MSG_OK; } -- cgit v1.2.3