-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: put more intelligence into queue_msg()
#1961
Conversation
Fixes #1942. There were two instances were it was not checked the target thread has a message queue before queuing the message. This PR centralizes the check into `queue_msg()`.
Tagging as [major], because |
You mention two instances, but fix one? Still ACK. |
This PR fixes |
So |
Anyway small progress is better than no progress: ACK |
|
return 0; | ||
DEBUG("queue_msg(): queuing message\n"); | ||
msg_t *dest = &target->msg_array[n]; | ||
*dest = *m; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the double assignment here?
Pointers sometimes still confuse me -.-
I revoke my NACK… merge at will. |
Yes, it is. |
core: put more intelligence into `queue_msg()`
I think the check was already in place by checking the return value of |
Fixes #1942.
There were two instances were it was not checked the target thread has a
message queue before queuing the message.
This PR centralizes the check into
queue_msg()
.(This PR is part of #1939)