LMMS
Loading...
Searching...
No Matches
zyncarla::LockFreeQueue Class Reference

#include <MultiPseudoStack.h>

Public Member Functions

 LockFreeQueue (qli_t *data_, int n)
 ~LockFreeQueue (void)
qli_tread (void)
void write (qli_t *Q)

Private Attributes

qli_t *const data
const int elms
std::atomic< uint32_t > * tag
std::atomic< int32_tnext_r
std::atomic< int32_tnext_w
std::atomic< int32_tavail

Constructor & Destructor Documentation

◆ LockFreeQueue()

zyncarla::LockFreeQueue::LockFreeQueue ( qli_t * data_,
int n )

◆ ~LockFreeQueue()

zyncarla::LockFreeQueue::~LockFreeQueue ( void )

Member Function Documentation

◆ read()

qli_t * zyncarla::LockFreeQueue::read ( void )

◆ write()

void zyncarla::LockFreeQueue::write ( qli_t * Q)

Member Data Documentation

◆ avail

std::atomic<int32_t> zyncarla::LockFreeQueue::avail
private

◆ data

qli_t* const zyncarla::LockFreeQueue::data
private

◆ elms

const int zyncarla::LockFreeQueue::elms
private

◆ next_r

std::atomic<int32_t> zyncarla::LockFreeQueue::next_r
private

◆ next_w

std::atomic<int32_t> zyncarla::LockFreeQueue::next_w
private

◆ tag

std::atomic<uint32_t>* zyncarla::LockFreeQueue::tag
private

The documentation for this class was generated from the following files: