Loading...
Searching...
No Matches
tsrb Struct Reference

thread-safe ringbuffer struct More...

Detailed Description

thread-safe ringbuffer struct

Definition at line 39 of file tsrb.h.

#include <tsrb.h>

Data Fields

uint8_t * buf
 Buffer to operate on.
 
unsigned int size
 Size of buffer, must be power of 2.
 
unsigned reads
 total number of reads
 
unsigned writes
 total number of writes
 

Field Documentation

◆ buf

uint8_t* tsrb::buf

Buffer to operate on.

Definition at line 40 of file tsrb.h.

◆ reads

unsigned tsrb::reads

total number of reads

Definition at line 42 of file tsrb.h.

◆ size

unsigned int tsrb::size

Size of buffer, must be power of 2.

Definition at line 41 of file tsrb.h.

◆ writes

unsigned tsrb::writes

total number of writes

Definition at line 43 of file tsrb.h.


The documentation for this struct was generated from the following file: