A framework for building native applications using React
Use atomic pointer for animationDelegate_ 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 animationDelegate_ to nullptr and JS thread reading the value. Even though they always happen one after the other, JS thread can have the value of animationDelegate_ in its cache line and changing it from main thread might not invalidate it right away. Reviewed By: JoshuaGross Differential Revision: D29237290 fbshipit-source-id: 6cb898caf7c225cf8162e7560921b563dec514b1
S
Samuel Susla committed
52a9fed3dfad55f2e122ea77134cc58d3a4e588d
Parent: d1e7551
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 6/18/2021, 9:53:28 PM