libcarla/include/carla/Buffer.cpp

15 lines
244 B
C++
Raw Permalink Normal View History

2024-10-18 13:19:59 +08:00
#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