Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move Synchronized::operator-> into ImplicitSynchronized
Summary: `folly::Synchronized::operator->` is a footgun in three ways. * It's easy to accidentally acquire a lock in an inner loop. * It's easy to cause a deadlock. * It's easy to non-atomically update independent fields under a mutex with repeated uses of `->`. It's clear that our deprecation warnings here aren't sufficient. Uses of `operator->` are showing up in new code. To ease the migration and prevent new accidental uses, move the operators into an `ImplicitSynchronized` subclass. Reviewed By: Gownta Differential Revision: D64356335 fbshipit-source-id: 8a57c64acd0dff1b2d7e384d24022d79d45707ca
- Loading branch information