Deprecate get_weak()
Summary: get_weak() is always used with .lock(), but try_get() is actually more performant than get_weak().lock(). Using get_weak() to store a weak_ptr and keep locking is not safe in fork scenarios. Reviewed By: yfeldblum Differential Revision: D2694223 fb-gh-sync-id: 908d44293ffd9b3782152d43e28d5de172d1654a
Showing
Please register or sign in to comment