Commit 78443c5a authored by Jack Montgomery's avatar Jack Montgomery Committed by Facebook Github Bot

changed Synchronized.md to reflect SharedMutex as default

Summary: folly/docs/Synchronized.md now reflects the fact that SharedMutex is default mutex for Synchronized

Reviewed By: yfeldblum

Differential Revision: D4529851

fbshipit-source-id: b3b8eafe908ba92e3629392fbc4b856b5a99b658
parent 6e4f4207
...@@ -150,7 +150,7 @@ the lock as soon as possible. ...@@ -150,7 +150,7 @@ the lock as soon as possible.
`Synchronized` is a template with two parameters, the data type and a `Synchronized` is a template with two parameters, the data type and a
mutex type: `Synchronized<T, Mutex>`. mutex type: `Synchronized<T, Mutex>`.
If not specified, the mutex type defaults to `std::mutex`. However, any If not specified, the mutex type defaults to `folly::SharedMutex`. However, any
mutex type supported by `folly::LockTraits` can be used instead. mutex type supported by `folly::LockTraits` can be used instead.
`folly::LockTraits` can be specialized to support other custom mutex `folly::LockTraits` can be specialized to support other custom mutex
types that it does not know about out of the box. See types that it does not know about out of the box. See
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment