Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flowIDMap being accessed from multiple threads simultaneously
Summary:`flowIDMap` lives on the bridge to map from the IDs used for the flow events in JS and the ones generated by `RCTProfile` in the native side. It was being accessed from multiple threads (the various modules' queues in the bridge and the JS thread), so we lock before touching it. Reviewed By: javache Differential Revision: D3102745 fb-gh-sync-id: 93d012d124e8b5d1a390c10a98ef5e3a068ccf63 fbshipit-source-id: 93d012d124e8b5d1a390c10a98ef5e3a068ccf63
- Loading branch information
1 parent
3614e78
commit 2be42ab
Showing
3 changed files
with
20 additions
and
7 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