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

Method GetAllLockID

phxqueue/config/lockconfig.cpp:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105comm::RetCode LockConfig::GetAllLockID(std::set<int> &lock_ids) const {
106 for (auto &&it : impl_->lock_id2lock) {
107 lock_ids.insert(it.first);
108 }
109 return comm::RetCode::RET_OK;
110}
111
112comm::RetCode LockConfig::GetLockByLockID(const int lock_id, shared_ptr<const proto::Lock> &lock) const {
113 auto it(impl_->lock_id2lock.find(lock_id));

Callers 4

GetLockIDMethod · 0.80
CheckLockConfigMethod · 0.80
TestLockConfigMethod · 0.80
DoLockMethod · 0.80

Calls

no outgoing calls

Tested by 2

CheckLockConfigMethod · 0.64
TestLockConfigMethod · 0.64