mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1452954c4c
Summary: There are cases where the CallbackWrapper instances were added from different thread, potentially crashing the inner std::unordered_set<> we're using to keep the wrappers alive for extended time. To avoid it, let's just use std::mutex. Reviewed By: shergin Differential Revision: D17631233 fbshipit-source-id: e8f98004e45a68be31f8f0cda118fb67dcb06d45