MCPcopy Create free account
hub / github.com/catboost/catboost / ~TAutoRelease

Method ~TAutoRelease

library/cpp/threading/future/async_semaphore.cpp:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64TAsyncSemaphore::TAutoRelease::~TAutoRelease() {
65 if (Sem) {
66 Sem->Release();
67 }
68}
69
70std::function<void (const TFuture<void>&)> TAsyncSemaphore::TAutoRelease::DeferRelease() {
71 return [s = std::move(this->Sem)](const TFuture<void>&) {

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected