Files
react-native/ReactCommon
Samuel SuslaandFacebook GitHub Bot d1e75517d1 Use atomic pointer to prevent race during teardown
Summary:
Changelog: [internal]

[This assumption](https://fburl.com/diffusion/yeqtvxru) in `~Scheduler` might not be completely correct. There can be a race between JS thread and main thread. With main thread settings delegate_ to nullptr and JS thread reading the value. Even though they always happen one after the other, JS thread can have the value of delegate_ in its cache line and changing it from main thread might not invalidate it right away.

Reviewed By: mdvacca

Differential Revision: D29233092

fbshipit-source-id: 390e773283a745742d78152b9921c9ce21148a4c
2021-06-18 14:53:28 -07:00
..
2021-04-01 04:50:59 -07:00
2021-06-18 12:01:00 -07:00
2020-05-15 21:55:52 -07:00
2021-05-20 21:24:25 -07:00