folly::LockFreeRingBuffer::LockFreeRingBuffer

Constructs a ring buffer holding the given number of writes.

Synopsis

Declared in <folly/concurrency/container/LockFreeRingBuffer.h>

explicit
LockFreeRingBuffer(uint32_t capacity) noexcept;

Parameters

NameDescription
capacityThe number of slots retained in the buffer.