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

Method with_lock

library/cpp/par/par_network.h:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46 const NNetliba_v12::TUdpAddress& GetNetlibaAddr() const {
47 with_lock (NetlibaAddrLock) {
48 if (NetlibaAddr.Empty()) {
49 NetlibaAddr = NNetliba_v12::CreateAddress(Address, Port);
50 }
51 return NetlibaAddr.GetRef();
52 }
53 }
54
55 size_t Hash() const {

Callers

nothing calls this directly

Calls 3

CreateAddressFunction · 0.70
EmptyMethod · 0.45
GetRefMethod · 0.45

Tested by

no test coverage detected