update Synchronized to use LockTraits
authorAdam Simpkins <simpkins@fb.com>
Wed, 6 Jul 2016 01:26:33 +0000 (18:26 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Wed, 6 Jul 2016 01:38:29 +0000 (18:38 -0700)
commitc9fd5aed37d8e116d4f3eed21b65a77e5d170037
tree39866641222c21689f8b347bc505895ef5e13a83
parent9276f2a5646a94eda765c92b171b98c499313213
update Synchronized to use LockTraits

Summary:
Update the Synchronized code to use the new LockTraits added in D3504625.
This also removes the acquireRead*() and releaseRead*() adapter functions that
had been defined for various other lock types, which are no longer needed.

Reviewed By: yfeldblum

Differential Revision: D3512310

fbshipit-source-id: daedd47c0378aebd479dbfe7aba24978deb9cc05
folly/RWSpinLock.h
folly/SpinLock.h
folly/Synchronized.h
folly/test/SynchronizedTest.cpp