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

Method Dispose

util/memory/tempbuf.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void TPerThreadedBuf::Dispose() noexcept {
166 if (Manager_ == TempBufManager()) {
167 Manager_->Return(this);
168 } else {
169 delete this;
170 }
171}
172
173TTempBuf::TTempBuf()
174 : Impl_(AcquireSmallBuffer(TMP_BUF_LEN))

Callers 1

DestroyMethod · 0.45

Calls 2

TempBufManagerFunction · 0.85
ReturnMethod · 0.45

Tested by

no test coverage detected