diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-04-13 12:14:11 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-04-13 12:14:11 +0000 |
commit | 556ed569c87f5ac1da899a40482206409c984f37 (patch) | |
tree | d863f199862aa6a0b8e7d7ef1784b3f228888326 /os/common/oslib/src/chmboxes.c | |
parent | 477baaed5a9158b120ba9a485b285ba218d0d5cd (diff) | |
download | ChibiOS-556ed569c87f5ac1da899a40482206409c984f37.tar.gz ChibiOS-556ed569c87f5ac1da899a40482206409c984f37.tar.bz2 ChibiOS-556ed569c87f5ac1da899a40482206409c984f37.zip |
Fixed problems in new mailboxes implementation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10156 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib/src/chmboxes.c')
-rw-r--r-- | os/common/oslib/src/chmboxes.c | 3 |
1 files changed, 3 insertions, 0 deletions
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;
}
|