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. b/305057554
- Loading branch information
1 parent
6db9cbc
commit 6b68dc5
Showing
2 changed files
with
28 additions
and
15 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