forked from youtube/cobalt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address potential Persistent Settings Getters race.
While Getters and SetterHelpers both use locks to prevent race conditions, Setters do not. Given that Setters run SetterHelpers through posted tasks, it is possible for Getters to run in-between Setters and SetterHelpers causing a race condition. To resolve this, effectively add Getters into the Post Task Queue by calling WaitForFence. Also refactor GetValues calls so that they are run by Setters rather than Getters to limit the number of deep copies made. Now that Getters and Setters no longer race, massively clean up the tests by removing the unwieldly and now unneeded closures. b/305057554
- Loading branch information
1 parent
00c3930
commit 9a84c56
Showing
3 changed files
with
221 additions
and
506 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
Oops, something went wrong.