]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/RWLock: add RWLock::{lock,unlock}_shared()
authorKefu Chai <kchai@redhat.com>
Sun, 7 Jul 2019 03:21:12 +0000 (11:21 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 3 Aug 2019 03:27:19 +0000 (11:27 +0800)
commit3f612c45e30592f1ca9a8fbe77c03efd8fd181c3
tree07e7cd336cf60215e55de5ea422ee4abaefc8f1d
parentd5cbb94bcb7d9343efbab217a800d84414adcf8a
common/RWLock: add RWLock::{lock,unlock}_shared()

so RWLock can be used with std::shared_lock,

rgw is using RWLock'prioritize_write feature, which is not offered by
std::shared_mutex, but we want to unify the way we use mutex, so add
these helper functions.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/RWLock.h