| 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(); |
no test coverage detected