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

Method GetAllLock

phxqueue/config/lockconfig.cpp:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98comm::RetCode LockConfig::GetAllLock(std::vector<shared_ptr<const proto::Lock> > &locks) const {
99 for (auto &&it : impl_->lock_id2lock) {
100 locks.push_back(it.second);
101 }
102 return comm::RetCode::RET_OK;
103}
104
105comm::RetCode LockConfig::GetAllLockID(std::set<int> &lock_ids) const {
106 for (auto &&it : impl_->lock_id2lock) {

Callers 3

CheckLockConfigMethod · 0.80
LockRunFunction · 0.80
TestLockConfigMethod · 0.80

Calls

no outgoing calls

Tested by 3

CheckLockConfigMethod · 0.64
LockRunFunction · 0.64
TestLockConfigMethod · 0.64