APM:Libraries
Classes | Functions | Variables
RingBuffer.cpp File Reference
#include <AP_HAL/AP_HAL.h>
#include <condition_variable>
#include <iostream>
#include <mutex>
#include <thread>
#include <AP_HAL/utility/RingBuffer.h>
Include dependency graph for RingBuffer.cpp:

Go to the source code of this file.

Classes

struct  stress_pairs
 

Functions

static void consumer_thread (struct stress_pairs *pair)
 
static void producer_thread (struct stress_pairs *pair)
 
static void usage (const char *program)
 
int main (int argc, char const **argv)
 

Variables

static uint8_t writer_buf [256]
 
mutex error_mtx
 
condition_variable error_cond
 

Function Documentation

◆ consumer_thread()

static void consumer_thread ( struct stress_pairs pair)
static

Definition at line 28 of file RingBuffer.cpp.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char const **  argv 
)

Definition at line 65 of file RingBuffer.cpp.

Referenced by dsm_decode(), and srxl_decode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ producer_thread()

static void producer_thread ( struct stress_pairs pair)
static

Definition at line 48 of file RingBuffer.cpp.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static void usage ( const char *  program)
static

Definition at line 59 of file RingBuffer.cpp.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ error_cond

condition_variable error_cond

Definition at line 26 of file RingBuffer.cpp.

Referenced by consumer_thread(), and main().

◆ error_mtx

mutex error_mtx

Definition at line 25 of file RingBuffer.cpp.

Referenced by consumer_thread(), and main().

◆ writer_buf

uint8_t writer_buf[256]
static

Definition at line 23 of file RingBuffer.cpp.

Referenced by consumer_thread(), main(), and producer_thread().