mcx::parameter_server::InputBuffer

mcx::parameter_server::InputBuffer

Inherits from mcx::utils::MpmcQueue< DataContainer >

Public Functions

Name
InputBuffer(uint32_t buffer_size)
~InputBuffer() override
bool allocate(uint32_t element_size)
void deallocate()
InputBuffer(const InputBuffer & ) =delete
InputBuffer & operator=(const InputBuffer & ) =delete

Additional inherited members

Protected Classes inherited from mcx::utils::MpmcQueue< DataContainer >

Name
struct Cell

Public Functions inherited from mcx::utils::MpmcQueue< DataContainer >

Name
MpmcQueue(uint32_t buffer_length)
virtual ~MpmcQueue()
bool write(const T & in, bool no_drop =false)
uint32_t read(T * out) const
void drop()
uint32_t pos() const
uint32_t size() const

Protected Attributes inherited from mcx::utils::MpmcQueue< DataContainer >

Name
Cell *const buffer_
uint32_t const buffer_mask_
std::atomic< uint32_t > enqueue_pos_
std::atomic< uint32_t > enqueue_pos_size_
std::atomic< uint32_t > dequeue_pos_
std::atomic< uint32_t > dequeue_pos_size_

Public Functions Documentation

function InputBuffer

explicit InputBuffer(
    uint32_t buffer_size
)

function ~InputBuffer

~InputBuffer() override

function allocate

bool allocate(
    uint32_t element_size
)

function deallocate

void deallocate()

function InputBuffer

InputBuffer(
    const InputBuffer & 
) =delete

function operator=

InputBuffer & operator=(
    const InputBuffer & 
) =delete

Updated on 2022-04-05 at 16:21:27 +0200