[riot-notifications] [RIOT] Setting STATUS_REPLY_BLOCKED thread to STATUS_PENDING though it is not handle yet (#100)

René Kijewski notifications at github.com
Wed Aug 7 19:40:13 CEST 2013


When in `_msg_receive` a message was in the `msg_queue` _and_ a thread is in `msg_waiters`, then the message of the waiter is copied into the `msg_queue` and it is set to `STATUS_PENDING`.

This is wrong if the waiting thread was `STATUS_REPLY_BLOCKED`.

I guess a `if (sender->status & STATUS_SEND_BLOCKED)` block around these 3 lines should solve the problem.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130807/d9fa6198/attachment.html>

More information about the notifications mailing list