]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RWLock: make read locking methods const
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 9 Apr 2014 20:15:32 +0000 (13:15 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 9 Apr 2014 21:31:35 +0000 (14:31 -0700)
commit970d53fc0fefc89ffe7550880a4aaa36bd534955
tree7c37082a49ee4cad26c1a3cee1f5e8a4dd8f3baf
parent957ac3cbe394473f225ffd2b632461fcdaca99e6
RWLock: make read locking methods const

This allows methods using RWLock for reading to be declared const.
There might be cases where we'd want to take a write lock in a const
method, but right now that's unnecessary, and I'd rather get a compile
error.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/RWLock.h