-
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
Indirect access for System::Clock functions #10056
Merged
Merged
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
pullapprove
bot
requested review from
andy31415,
anush-apple,
balducci-apple,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
Damian-Nordic,
emargolis,
erjiaqing,
franck-apple,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
LuDuda,
msandstedt,
pan-apple,
sagar-apple and
saurabhst
September 29, 2021 14:15
#### Problem Historically `System::Clock` operations were fixed global functions. Recently PR#9547 converted to a mockable abstract base class, but transitionally retained the global function API externally. #### Change overview - Added `SystemClock()`, following the model of `SystemLayer()`. - Removed the old global functions. #### Testing CI. Revised `TestSystemClock` to use a `SetSystemClockForTesting()` function, again following the System::Layer model.
kpschoedel
force-pushed
the
x7715-clock
branch
from
September 29, 2021 16:11
ec7edaa
to
b5d7b61
Compare
woody-apple
approved these changes
Sep 29, 2021
tcarmelveilleux
approved these changes
Sep 29, 2021
LuDuda
approved these changes
Sep 29, 2021
msandstedt
approved these changes
Sep 29, 2021
emargolis
approved these changes
Sep 30, 2021
remove.connectedhomeip/src/system/SystemClock.h Lines 115 to 125 in e406848
This comment was generated by todo based on a
|
Size increase report for "gn_qpg-example-build" from 12a35d8
Full report output
|
Size increase report for "nrfconnect-example-build" from 12a35d8
Full report output
|
Size increase report for "esp32-example-build" from 12a35d8
Full report output
|
PR #10056: Size comparison from e406848 to 12a35d8 34 builds
|
kpschoedel
added a commit
to kpschoedel/connectedhomeip
that referenced
this pull request
Oct 1, 2021
#### Problem Followups from PR project-chip#10056 Indirect access for System::Clock functions Fixes project-chip#10146 Remove GetMonotonicMicroseconds() call Fixes project-chip#10145 remove. Fixes project-chip#10144 The static cast should have the / 1000 within it #### Change overview - Removes the global backward-compatibility wrappers for `GetMonotonic…()`. - Correctly parenthesize the project-chip#10146 cast. #### Testing CI. No changes to functionality intended.
kpschoedel
added a commit
to kpschoedel/connectedhomeip
that referenced
this pull request
Oct 1, 2021
#### Problem Followups from PR project-chip#10056 Indirect access for System::Clock functions Fixes project-chip#10146 Remove GetMonotonicMicroseconds() call Fixes project-chip#10145 remove. Fixes project-chip#10144 The static cast should have the / 1000 within it #### Change overview - Removes the global backward-compatibility wrappers for `GetMonotonic…()`. - Correctly parenthesize the project-chip#10146 cast. #### Testing CI. No changes to functionality intended.
andy31415
pushed a commit
that referenced
this pull request
Oct 4, 2021
#### Problem Followups from PR #10056 Indirect access for System::Clock functions Fixes #10146 Remove GetMonotonicMicroseconds() call Fixes #10145 remove. Fixes #10144 The static cast should have the / 1000 within it #### Change overview - Removes the global backward-compatibility wrappers for `GetMonotonic…()`. - Correctly parenthesize the #10146 cast. #### Testing CI. No changes to functionality intended.
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
Historically
System::Clock
operations were fixed global functions.Recently PR#9547 converted to a mockable abstract base class, but
transitionally retained the global function API externally.
Change overview
SystemClock()
, following the model ofSystemLayer()
.Testing
CI; no change to functionality expected.
Revised
TestSystemClock
to use aSetSystemClockForTesting()
function, again following the System::Layer model.