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

Method Lock

library/cpp/yt/memory/weak_ptr.h:186–191  ·  view source on GitHub ↗

Acquire a strong reference to the pointee and return a strong pointer.

Source from the content-addressed store, hash-verified

184
185 //! Acquire a strong reference to the pointee and return a strong pointer.
186 TIntrusivePtr<T> Lock() const noexcept
187 {
188 return T_ && RefCounter()->TryRef()
189 ? TIntrusivePtr<T>(T_, false)
190 : TIntrusivePtr<T>();
191 }
192
193 bool IsExpired() const noexcept
194 {

Callers 10

lazyFunction · 0.45
lazy_propertyFunction · 0.45
decoratorFunction · 0.45
SingletonClass · 0.45
__call__Method · 0.45
__init__Method · 0.45
runtime.pyFile · 0.45
TWeakPtrMethod · 0.45
TEST_FFunction · 0.45

Calls 1

TryRefMethod · 0.80

Tested by

no test coverage detected