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

Method pop_front

src/common/PrioritizedQueue.h:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 return cur->second.front();
108 }
109 T pop_front() {
110 ceph_assert(!(q.empty()));
111 ceph_assert(cur != q.end());
112 T ret = std::move(cur->second.front().second);
113 cur->second.pop_front();
114 if (cur->second.empty()) {
115 q.erase(cur++);
116 } else {
117 ++cur;
118 }
119 if (cur == q.end()) {
120 cur = q.begin();
121 }
122 size--;
123 return ret;
124 }
125 unsigned length() const {
126 ceph_assert(size >= 0);
127 return (unsigned)size;

Callers 15

get_iargMethod · 0.45
update_snap_traceMethod · 0.45
tickMethod · 0.45
lock_fh_posMethod · 0.45
get_sargMethod · 0.45
runMethod · 0.45
full_walkMethod · 0.45
open_sharedMethod · 0.45
create_objectsMethod · 0.45
trim_expiredMethod · 0.45
dequeueMethod · 0.45

Calls 5

emptyMethod · 0.45
endMethod · 0.45
frontMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected