RTXI 2.4 The Real-Time eXperiment Interface Documentation |
Lockfree SINGLE producer / SINGLE consumer FIFO. More...
#include <atomic_fifo.h>

Public Member Functions | |
| AtomicFifo (size_t) | |
| ~AtomicFifo (void) | |
| bool | write (const void *buffer, size_t itemSize) |
| bool | read (void *buffer, size_t itemSize) |
| bool | isLockFree () const |
Lockfree SINGLE producer / SINGLE consumer FIFO.
Definition at line 33 of file atomic_fifo.h.
| AtomicFifo::AtomicFifo | ( | size_t | s | ) |
Definition at line 24 of file atomic_fifo.cpp.
| AtomicFifo::~AtomicFifo | ( | void | ) |
Definition at line 30 of file atomic_fifo.cpp.
| bool AtomicFifo::isLockFree | ( | ) | const |
Function to check if FIFO is truly atomic for the hardware architecture
Definition at line 94 of file atomic_fifo.cpp.
| bool AtomicFifo::read | ( | void * | buffer, |
| size_t | itemSize | ||
| ) |
Function for reading data from atomic FIFO
| buffer | Memory source |
| itemSize | Size of memory chunk to be copied into fifo |
Definition at line 61 of file atomic_fifo.cpp.
| bool AtomicFifo::write | ( | const void * | buffer, |
| size_t | itemSize | ||
| ) |
Function for writing data to atomic FIFO
| buffer | Memory destination |
| itemSize | Size of memory chunk to be copied |
Definition at line 35 of file atomic_fifo.cpp.

1.8.17