Opaque pointer to a past or future write. Can be moved relative to its current location but not in absolute terms.
Declared in <folly/concurrency/container/LockFreeRingBuffer.h>
struct Cursor
: boost::totally_ordered<Cursor>
| Name | Description |
|---|---|
boost::totally_ordered<Cursor> |
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
ticket | The write ticket this cursor points to. |
| Name | Description |
|---|---|
folly::LockFreeRingBuffer | LockFreeRingBuffer<T> is a fixed-size, concurrent ring buffer with the following semantics: |