-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thread safety for ViewportManager list of ViewportChanged listeners
Summary: Adding and removing `ViewportChanged Listeners` into the `ViewportManager` can happen on any thread. For example, in `RecyclerCollectionComponentSpec`, we are adding a listener in `OnCreateInitialState`, which can happen on any thread. This diff will fix this problem by making sure we synchronized on the operations around `List<ViewportChanged> mViewportChangedListeners`. Reviewed By: indragiek Differential Revision: D14390680 fbshipit-source-id: 74d5e060ee09a29ce7ff3ce854c1ca3f6a6ed480
- Loading branch information
1 parent
33feef7
commit 9da9d90
Showing
1 changed file
with
25 additions
and
13 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