a7468a4acf
Summary: (This diff was decoupled from D4983054 which landing was quite delayed.) `RCTUnsafeExecuteOnMainQueueOnceSync()` synchronously executes a block once, on main queue. I found that our old implementation of `RCTScreenScale()` causes deadlock when it is called from main and background thread simultaneously. After I implemented my own solution I googled this issue and found an article by Ben Alpert with this awesome helper: https://benalpert.com/2014/04/02/dispatch-once-initialization-on-the-main-thread.html So, I found it super useful and borrowed it. Hey spicyj! :) Reviewed By: fkgozali Differential Revision: D5632592 fbshipit-source-id: dff43a5780b7404a3cc109c66c131cef4f4df429 |
||
---|---|---|
.. | ||
Base | ||
CxxBridge | ||
CxxModule | ||
CxxUtils | ||
DevSupport | ||
Executors | ||
Inspector | ||
Modules | ||
Profiler | ||
React.xcodeproj | ||
ReactLegacy.xcodeproj | ||
Views | ||
third-party.xcconfig |