proxygen
|
#include <LockFreeRingBuffer.h>
Public Member Functions | |
Cursor (uint64_t initialTicket) noexcept | |
bool | moveForward (uint64_t steps=1) noexcept |
bool | moveBackward (uint64_t steps=1) noexcept |
Protected Attributes | |
uint64_t | ticket |
Friends | |
class | LockFreeRingBuffer |
Opaque pointer to a past or future write. Can be moved relative to its current location but not in absolute terms.
Definition at line 71 of file LockFreeRingBuffer.h.
|
inlineexplicitnoexcept |
Definition at line 72 of file LockFreeRingBuffer.h.
|
inlinenoexcept |
Returns true if this cursor now points to a previous write, false otherwise.
Definition at line 84 of file LockFreeRingBuffer.h.
References shell_builder::steps, ticket, and uint64_t.
Referenced by folly::TEST().
|
inlinenoexcept |
Returns true if this cursor now points to a different write, false otherwise.
Definition at line 76 of file LockFreeRingBuffer.h.
References shell_builder::steps, ticket, and uint64_t.
Referenced by folly::TEST().
|
friend |
Definition at line 96 of file LockFreeRingBuffer.h.
|
protected |
Definition at line 95 of file LockFreeRingBuffer.h.