MCPcopy Create free account
hub / github.com/catboost/catboost / UpdateServices

Method UpdateServices

library/cpp/neh/rpc.cpp:217–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 inline bool UpdateServices(TSrvs& srvs, i64& version) const {
218 if (SelfVersion_.load() == version) {
219 return false;
220 }
221
222 srvs.clear();
223
224 TGuard<TSpinLock> guard(L_);
225
226 for (const auto& it : *this) {
227 srvs[TParsedLocation(it.first).Service] = it.second;
228 }
229 version = SelfVersion_.load();
230
231 return true;
232 }
233
234 inline TListenAddrs ListenAddrs() const {
235 TListenAddrs addrs;

Callers

nothing calls this directly

Calls 3

TParsedLocationClass · 0.70
loadMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected