-
Notifications
You must be signed in to change notification settings - Fork 3k
Add units to timeout argument in EventFlags #9670
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
Conversation
This phrasing occurs in quite a lot of other RTOS header files, as they were a copy-and-paste from CMSIS-RTOS docs (but might be CMSIS-RTOS v1 rather than v2?). Would be worth updating the others if doing I can immediately think of As a sort of compromise, some of those seem to have kept the phrasing, but renamed the |
@kjbracey-arm It looks like everything else in rtos uses the millisecond parameter name with the old description. I'm not as much of a fan of this since I find it's a bit strange to name the variable after the units and not what it does but as everything uses that I could instead change the EventFlag parameter to millisecond for consistency. |
Edit: Lightly related issue |
@loverdeg-ep Mind elaborating on your single-link comment? |
Kind of a personal note I suppose. Like to be able to retrace interesting & related conversations for my future self. I'll cut it out if causing trouble. |
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.
As per comment above, I'm going to request that this be made consistent across the rtos
classes.
I don't mind whether you change this to match the others, or change all the others to match your new form here - others can express a preference.
Nah, no need. That's fine. |
@kegilbert Any progress? |
Yup, updating this today. |
Matches rest of RTOS class timeout parameters by using the unit name. Remove ambigious statement in reference to 0 ms being no-timeout as a timeout of 0 causes the function to not block and return immediately (osWaitForever is used as no timeout as it will wait forever)
aacc1a1
to
f1abca3
Compare
I additionally removed the
As we had in Mail.h in particular threw me off. Feel free to let me know if you disagree, I can change that back if need be. |
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
Description
Add units to the timeout argument in wait_all/any:
#8894
Pull request type
Reviewers
@sarahmarshy
@AnotherButler