12# pragma clang diagnostic push
13# pragma clang diagnostic ignored "-Wold-style-cast"
17# pragma clang diagnostic pop
30 class BufferPool :
public std::enable_shared_from_this<BufferPool> {
41#if __cplusplus >= 201703L
54 _queue.enqueue(std::move(buffer));
Buffer Pop()
Pop a Buffer from the queue, creates a new one if the queue is empty.
BufferPool(size_t estimated_size)
void Push(Buffer &&buffer)
moodycamel::ConcurrentQueue< Buffer > _queue
std::weak_ptr< BufferPool > _parent_pool
This file contains definitions of common data structures used in traffic manager.