15 lines
244 B
C++
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
|