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

Method Front

phxqueue/store/storemeta.cpp:176–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176bool StoreMetaQueue::Front(StoreMeta &meta) {
177 lock_guard<mutex> lock_guard(impl_->lock);
178
179 if (impl_->metas.empty()) return false;
180 meta = *impl_->metas.begin();
181 return true;
182}
183
184bool StoreMetaQueue::Back(StoreMeta &meta) {
185 lock_guard<mutex> lock_guard(impl_->lock);

Callers 1

MakeCheckPointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected