-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally avoid global constructors (#29071)
* Use SystemClock() instead of creating a separate instance * Add chip::Global to make initialization of globals configurable The behavior of chip::Global can be configured via the platform configuration via the settings CHIP_CONFIG_GLOBALS_LAZY_INIT CHIP_CONFIG_GLOBALS_NO_DESTRUCT Both default to 0, retaining normal C++ global init behavior. * Darwin: Adopt chip::Global for platform / framework * Adopt chip::Global for core singletons with non-trivial constructors / destructors Note that there is a slight change to the API of ArrayAttestationTrustStore to make it easier to create and pass a constexpr array of root certificates. * Make Global::get() public and remove operator* * Avoid changing ArrayAttestationTrustStore API... ... by moving kTestAttestationTrustStoreRoots (formerly kTestPaaRoots) into CHIPAttCert_test_vectors.cpp where the certificate spans themselves are defined. * Comment wording Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> --------- Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
- Loading branch information
Showing
22 changed files
with
237 additions
and
74 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.