mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-29 22:41:56 +08:00
Summary:There was a deadlock in the bridge if a native module tried to dispatch an event through EventDispatcher (that thread would hold the mTeardownLock and want the mEventStaging lock) at the same time the EventDispatcher callback was triggered and tried to dispatch a call through JS (that thread would hold the mEventStaging lock and want the mTeardownLock). Now there are two locks (lol). In the scenario above, the native module would hold the mJSToJavaTeardownLock and want the mEventStaging lock, while the EventDispatcher callback would hold the mEventStaging lock and want the mJavaToJSTeardownLock. Reviewed By: lexs Differential Revision: D3011526 fb-gh-sync-id: c3ebd5c14a6370d73caebf6c99fcba18a86c6ac1 shipit-source-id: c3ebd5c14a6370d73caebf6c99fcba18a86c6ac1
Building React Native for Android
See docs on the website.