Ardour
9.0-pre0-582-g084a23a80d
|
#include <mpmc_queue.h>
Classes | |
struct | cell_t |
Public Member Functions | |
MPMCQueue (size_t buffer_size=8) | |
~MPMCQueue () | |
size_t | capacity () const |
void | reserve (size_t buffer_size) |
void | clear () |
bool | push_back (T const &data) |
bool | pop_front (T &data) |
Static Public Member Functions | |
static size_t | power_of_two_size (size_t sz) |
Private Attributes | |
char | _pad0 [64] |
cell_t * | _buffer |
size_t | _buffer_mask |
char | _pad1 [64 - sizeof(cell_t *) - sizeof(size_t)] |
std::atomic< size_t > | _enqueue_pos |
char | _pad2 [64 - sizeof(size_t)] |
std::atomic< size_t > | _dequeue_pos |
char | _pad3 [64 - sizeof(size_t)] |
Definition at line 38 of file mpmc_queue.h.
|
inline |
Definition at line 41 of file mpmc_queue.h.
|
inline |
Definition at line 48 of file mpmc_queue.h.
|
inline |
Definition at line 53 of file mpmc_queue.h.
|
inline |
Definition at line 80 of file mpmc_queue.h.
|
inline |
Definition at line 118 of file mpmc_queue.h.
|
inlinestatic |
Definition at line 58 of file mpmc_queue.h.
|
inline |
Definition at line 90 of file mpmc_queue.h.
|
inline |
Definition at line 66 of file mpmc_queue.h.
|
private |
Definition at line 151 of file mpmc_queue.h.
|
private |
Definition at line 152 of file mpmc_queue.h.
|
private |
Definition at line 156 of file mpmc_queue.h.
|
private |
Definition at line 154 of file mpmc_queue.h.
|
private |
Definition at line 150 of file mpmc_queue.h.
|
private |
Definition at line 153 of file mpmc_queue.h.
|
private |
Definition at line 155 of file mpmc_queue.h.
|
private |
Definition at line 157 of file mpmc_queue.h.