MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Back

Method Back

phxqueue/store/storemeta.cpp:184–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool StoreMetaQueue::Back(StoreMeta &meta) {
185 lock_guard<mutex> lock_guard(impl_->lock);
186
187 if (impl_->metas.empty()) return false;
188 meta = *impl_->metas.rbegin();
189 return true;
190}
191
192void StoreMetaQueue::EraseFrontTill(const StoreMeta &meta) {
193 lock_guard<mutex> lock_guard(impl_->lock);

Callers 1

NeedSkipAddMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected