libcarla/include/carla/Buffer.cpp
2024-10-18 13:19:59 +08:00

15 lines
244 B
C++

#include "carla/Buffer.h"
#include "carla/BufferPool.h"
namespace carla {
void Buffer::ReuseThisBuffer() {
auto pool = _parent_pool.lock();
if (pool != nullptr) {
pool->Push(std::move(*this));
}
}
} // namespace carla