Nomenclature in Synchronized - prefer read to shared
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 9 Sep 2016 21:44:11 +0000 (14:44 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Fri, 9 Sep 2016 21:53:27 +0000 (14:53 -0700)
commit2e8a121a56f93dca3d6d641100a0e51af62df4e8
tree870e67faef342ffd41768aa64ea08506dfa7ce84
parent2f028f63edda391482083792f61bda841f471d07
Nomenclature in Synchronized - prefer read to shared

Summary:
[Folly] Nomenclature in `Synchronized` - prefer `read` to `shared`.

`folly::Synchronized` is a higher-level abstraction, so it will use higher-level nomenclature than will lower-level tools like `std::mutex` and `folly::LockTraits`. `shared` describes the lock state, and is used in the C++ libraries. `read` describes the class of operations that calling code is permitted to perform.

Reviewed By: simpkins

Differential Revision: D3840060

fbshipit-source-id: 4b23eaa391cb59d1eca2bfacf72db89d3c7c591e
folly/Synchronized.h
folly/docs/Synchronized.md
folly/test/SynchronizedTest.cpp