Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::RingBuffer::ReadContext

Write context type, which allows efficient and safe reading.

To read data: 1) Construct ReadContext. This spin-waits for data to be available if it is not already (see also HasData()). 2) Read data from the pointer returned by GetData(). 3) Destroy ReadContext. This released the data back to the buffer, allowing it to be overwritten by the producer.

Functions

NameDescription
~ReadContext()

Destructor, releases data back to buffer.

GetData()

Get the data to read.

NonCopyable(NonCopyable &&)

Defaulted to allow move.

operator=(NonCopyable &&)

Defaulted to allow move.

ReadContext(RingBuffer &)

Construct read context, waiting if data is not available.


Anchor
a0de3c89c9d5aec5aa6a35df1b387ad75
a0de3c89c9d5aec5aa6a35df1b387ad75

Geo::RingBuffer::ReadContext::~ReadContext

...

public: ~ReadContext()

...

Destructor, releases data back to buffer.


Anchor
a715de97073e3d8b7d81a5c96519809e9
a715de97073e3d8b7d81a5c96519809e9

void* Geo::RingBuffer::ReadContext::GetData

...

public: void * GetData() const

...

Get the data to read.


Anchor
adaed81b4c59f263dcb4e78c4126f4683
adaed81b4c59f263dcb4e78c4126f4683

Geo::NonCopyable::NonCopyable

...

public: NonCopyable
(
    NonCopyable &&
)

...

Defaulted to allow move.


Anchor
a6abc781e23b8f4864e0b868806e0acbf
a6abc781e23b8f4864e0b868806e0acbf

NonCopyable& Geo::NonCopyable::operator=

...

public: NonCopyable & operator=
(
    NonCopyable &&
)

...

Defaulted to allow move.


Anchor
a3eb0d35175401dd222e7e0e5b7569f4a
a3eb0d35175401dd222e7e0e5b7569f4a

Geo::RingBuffer::ReadContext::ReadContext

...

public: ReadContext
(
    RingBuffer & buffer
)

...

Construct read context, waiting if data is not available.