• Yedidya Feldblum's avatar
    Nomenclature in Synchronized - prefer read to shared · 2e8a121a
    Yedidya Feldblum authored
    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
    2e8a121a
SynchronizedTest.cpp 17.3 KB