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