-
Notifications
You must be signed in to change notification settings - Fork 1.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
Added ability to change task notification index for streambuffers #939
Added ability to change task notification index for streambuffers #939
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #939 +/- ##
==========================================
- Coverage 93.78% 93.43% -0.35%
==========================================
Files 6 6
Lines 3186 3199 +13
Branches 885 890 +5
==========================================
+ Hits 2988 2989 +1
- Misses 91 103 +12
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Hello @glemco, thank you for taking the time to raise this pull request by following up on the forum post.
The change looks good to me and seems correct. I am approving this change in advance contingent on the fixing of the failing checks.
Thanks again!
/bot run formatting |
Thanks @AniruddhaKanhere for the approval, I'm trying to figure out how to fix the failed steps, besides formatting which is trivial, I'm not quite sure why is the link verifier complaining and how to convince the coverage report that the functions are checked (or at least they should be in FreeRTOS/FreeRTOS#1150, which obviously cannot be merged before this change in the kernel) |
Hey @glemco, Apologies for the late response. The link check issue seems to have been a transient failure. We are aware of this circular dependency between tests and the PR checks. We can ignore the failing unit tests for now. Spell check is failing though. To fix that, you need to add the list of outlier spellings in this file. |
Thanks @AniruddhaKanhere for the explanation! It seems after your merge the spellcheck is not failing any more (probably another transient failure? It didn't seem related to the code I changed) |
Signed-off-by: Gaurav Aggarwal <[email protected]>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Update Readme for the FreeRTOS_PLUS_TCP_ECHO_QEMU_msp2 Signed-off-by: Gaurav Aggarwal <[email protected]> Co-authored-by: Gaurav Aggarwal <[email protected]>
Description
This PR adds the modification described in https://forums.freertos.org/t/multiple-message-buffers-per-task-interferences/17663:
In short, all calls to
xTaskNotify*
APIs are now using the*Indexed
version and a new field was added toStreamBuffer_t
to store the notification value used for that buffer.Now, this value can be get and set using new functions (
uxStreamBufferGetStreamBufferNotificationIndex
andvStreamBufferSetStreamBufferNotificationIndex
) to avoid changing the overall API.Test Steps
tskDEFAULT_INDEX_TO_NOTIFY
) as index.vStreamBufferSetStreamBufferNotificationIndex
configTASK_NOTIFICATION_ARRAY_ENTRIES
Checklist:
Related Issue
https://forums.freertos.org/t/multiple-message-buffers-per-task-interferences/17663
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.