#include <BufferPool.h>
Public Member Functions | |
BufferPool ()=default | |
BufferPool (size_t estimated_size) | |
Buffer | Pop () |
Pop a Buffer from the queue, creates a new one if the queue is empty. More... | |
Private Member Functions | |
void | Push (Buffer &&buffer) |
Private Attributes | |
moodycamel::ConcurrentQueue< Buffer > | _queue |
Friends | |
class | Buffer |
A pool of Buffer.
Buffers popped from this pool automatically return to the pool on destruction so the allocated memory can be reused.
Definition at line 30 of file BufferPool.h.
|
default |
|
inlineexplicit |
Definition at line 35 of file BufferPool.h.
|
inline |
Pop a Buffer from the queue, creates a new one if the queue is empty.
Definition at line 38 of file BufferPool.h.
References carla::Buffer::_parent_pool, and _queue.
|
inlineprivate |
Definition at line 53 of file BufferPool.h.
References _queue.
|
friend |
Definition at line 51 of file BufferPool.h.
|
private |
Definition at line 57 of file BufferPool.h.