MCPcopy Create free account
hub / github.com/ceph/ceph / modify_msgr_hook

Method modify_msgr_hook

src/common/ceph_context.cc:820–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void CephContext::modify_msgr_hook(
821 std::function<AdminSocketHook*(void)> create,
822 std::function<void(AdminSocketHook*)> add) {
823 std::lock_guard l{_msgr_hook_lock};
824 if (_msgr_hook) {
825 add(_msgr_hook.get());
826 } else {
827 _msgr_hook.reset(create());
828 }
829}
830
831CephContext::~CephContext()
832{

Callers 3

TESTFunction · 0.80
AsyncMessengerMethod · 0.80
~AsyncMessengerMethod · 0.80

Calls 4

createFunction · 0.70
addFunction · 0.50
getMethod · 0.45
resetMethod · 0.45

Tested by 1

TESTFunction · 0.64