mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Instead of the whole family of commit* and complete* methods, now we have one single `commit` method which performs pre- and post-commit operations and swap pointers in a thread-safe manner. The `commit` operation is also exposing `revision` number and allows perform multiple commit attempts. `completeByReplacingShadowNode`, `measure` and `constraintLayout` are also going away to RootShadowNode class in the next commits. Why? * Nicer API; * No more recursive_mutex, no more problems with thread jumps; * All mutex locks are now leaf-locks, so no more deadlocks possible; * Exposing `revision` should help with debugging races. Reviewed By: sahrens Differential Revision: D13613942 fbshipit-source-id: 94e797d2f7860717847e823b5d97c4f7b35f08df