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

Method Acquire

util/memory/tempbuf.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 inline TPerThreadedBuf* Acquire() {
135 if (!Unused_.Empty()) {
136 return Unused_.PopFront();
137 }
138
139 return new TPerThreadedBuf(this);
140 }
141
142 inline void Return(TPerThreadedBuf* buf) noexcept {
143 buf->Reset();

Callers 1

AcquireSmallBufferFunction · 0.45

Calls 2

EmptyMethod · 0.45
PopFrontMethod · 0.45

Tested by

no test coverage detected