-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a mutex to guard access to lastLayoutMetrics_ in ViewEventEmitter
Summary: Of course, compare_exchange_strong didn't actually do what I wanted. Using a mutex is simpler and actually has the semantics we want: atomically get the current value, compare, and bail if the value is the same, or swap and continue. Changelog: [Internal] Reviewed By: shergin Differential Revision: D19754451 fbshipit-source-id: 6b0aef217b235959af683ec5e31b07a0dd7bb040
- Loading branch information
1 parent
f555202
commit 6be37d8
Showing
2 changed files
with
9 additions
and
8 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