CARLA
LibCarla
source
carla
carla/Buffer.cpp
Go to the documentation of this file.
1
#include "
carla/Buffer.h
"
2
3
#include "
carla/BufferPool.h
"
4
5
namespace
carla
{
6
7
void
Buffer::ReuseThisBuffer
() {
8
auto
pool =
_parent_pool
.lock();
9
if
(pool !=
nullptr
) {
10
pool->Push(std::move(*
this
));
11
}
12
}
13
14
}
// namespace carla
BufferPool.h
carla::Buffer::ReuseThisBuffer
void ReuseThisBuffer()
Definition:
carla/Buffer.cpp:7
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
Buffer.h
carla::Buffer::_parent_pool
std::weak_ptr< BufferPool > _parent_pool
Definition:
carla/Buffer.h:366
Generated by
1.8.13