~smspillaz/folly/folly-git-master

Viewing all changes in revision 5689.

  • Committer: Facebook Github Bot
  • Author(s): Aaryaman Sagar
  • Date: 2018-07-18 05:07:36 UTC
  • Revision ID: git-v1:ea29a7a6c6f4061e807710f7f95a9fbe9fba0972
Remove const folly::Synchronized upgrade lock acquire

Summary: Users acquiring upgrade locks should only be allowed to lock the synchronized object when it is non-const.  Because an upgrade locks are permitted to transition to write locks when mutation is required.  At which point non-const access is often required on the Synchronized object.

Reviewed By: yfeldblum

Differential Revision: D8654360

fbshipit-source-id: c2a6574bd880db0d8e4c90166e288f5b83542ad6

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: