folly::LockFreeRingBuffer::Cursor

Opaque pointer to a past or future write. Can be moved relative to its current location but not in absolute terms.

Synopsis

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

struct Cursor
    : boost::totally_ordered<Cursor>

Base Classes

NameDescription
boost::totally_ordered<Cursor>

Member Functions

NameDescription
Cursor [constructor]Constructs a cursor pointing at the given write ticket.
moveBackward Moves the cursor toward older writes.
moveForward Advances the cursor toward more recent writes.
operator== Compares two cursors for equality.
operator< Orders two cursors by their position in the write stream.

Protected Data Members

NameDescription
ticket The write ticket this cursor points to.

Friends

NameDescription
folly::LockFreeRingBufferLockFreeRingBuffer<T> is a fixed-size, concurrent ring buffer with the following semantics: