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

Method local_delivery

src/msg/DispatchQueue.cc:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void DispatchQueue::local_delivery(const ref_t<Message>& m, int priority)
102{
103 auto local_delivery_stamp = ceph_clock_now();
104 m->set_recv_stamp(local_delivery_stamp);
105 m->set_throttle_stamp(local_delivery_stamp);
106 m->set_recv_complete_stamp(local_delivery_stamp);
107 std::lock_guard l{local_delivery_lock};
108 if (local_messages.empty())
109 local_delivery_cond.notify_all();
110 local_messages.emplace(m, priority);
111 return;
112}
113
114void DispatchQueue::run_local_delivery()
115{

Callers 1

send_messageMethod · 0.45

Calls 7

ceph_clock_nowFunction · 0.85
set_recv_stampMethod · 0.80
set_throttle_stampMethod · 0.80
emptyMethod · 0.45
notify_allMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected