-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use safer System::Clock types in transport and messaging #10913
Merged
woody-apple
merged 1 commit into
project-chip:master
from
kpschoedel:x10062-clock-type-4a
Oct 27, 2021
Merged
Use safer System::Clock types in transport and messaging #10913
woody-apple
merged 1 commit into
project-chip:master
from
kpschoedel:x10062-clock-type-4a
Oct 27, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Problem Code uses plain integers to represent time values and relies on users to get the unit scale correct. Part of project-chip#10062 _Some operations on System::Clock types are not safe_ #### Change overview Convert `src/transport` and `src/messaging` to use the safer `Clock` types. #### Testing CI; no change to functionality intended. Conversion includes `src/messaging/tests/echo/echo_requester.cpp` and several `src/transport/raw/tests/`.
pullapprove
bot
requested review from
andy31415,
anush-apple,
balducci-apple,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chulspro,
Damian-Nordic,
erjiaqing,
franck-apple,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
LuDuda,
mlepage-google,
msandstedt,
mspang,
pan-apple,
robszewczyk,
sagar-apple,
saurabhst,
tcarmelveilleux,
tecimovic and
vivien-apple
October 25, 2021 17:17
pullapprove
bot
requested review from
wbschiller,
woody-apple and
yunhanw-google
October 25, 2021 17:17
Contributor
Author
PR #10913: Size comparison from 37c3f7f to 92826e8 Increases (8 builds for linux)
Decreases (12 builds for efr32, nrfconnect, p6, telink)
Full report (30 builds for efr32, k32w, linux, nrfconnect, p6, qpg, telink)
5 builds (for esp32, mbed)
|
andy31415
approved these changes
Oct 25, 2021
Size increase report for "nrfconnect-example-build" from 37c3f7f
Full report output
|
msandstedt
approved these changes
Oct 26, 2021
woody-apple
approved these changes
Oct 27, 2021
JasonLiuZhuoCheng
pushed a commit
to JasonLiuZhuoCheng/connectedhomeip
that referenced
this pull request
Oct 28, 2021
…p#10913) #### Problem Code uses plain integers to represent time values and relies on users to get the unit scale correct. Part of project-chip#10062 _Some operations on System::Clock types are not safe_ #### Change overview Convert `src/transport` and `src/messaging` to use the safer `Clock` types. #### Testing CI; no change to functionality intended. Conversion includes `src/messaging/tests/echo/echo_requester.cpp` and several `src/transport/raw/tests/`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Code uses plain integers to represent time values and relies on
users to get the unit scale correct.
Part of #10062 Some operations on System::Clock types are not safe
Change overview
Convert
src/transport
andsrc/messaging
to use the saferClock
types.Testing
CI; no change to functionality intended.
Conversion includes
src/messaging/tests/echo/echo_requester.cpp
and several
src/transport/raw/tests/
.