]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/Message: add SafeMessage which forbids put/get 27592/head
authorKefu Chai <kchai@redhat.com>
Tue, 16 Apr 2019 02:46:36 +0000 (10:46 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Apr 2019 22:59:42 +0000 (06:59 +0800)
commitf78bc1a8cb2e5149736ea050c63149ae9b30d8aa
tree5ce8a14ae433fe19d9fb4ec255e390f988b2c0d3
parent78e7d9051ae7000dcbb1f1f399fcda71cac0bf08
msg/Message: add SafeMessage which forbids put/get

This is an opt-in wrapper around Message inheritance to prevent
undesired get/put calls on the object. Instead, you must/should use a
smart ptr to adjust the reference count.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/Message.h