Libtrap: Internal development docs
0.11.7
|
#include <trap_buffer.h>
Data Fields | |
char * | mem |
tb_block_t * | cur_wr_block |
tb_block_t ** | blocks |
uint16_t | cur_wr_block_idx |
tb_block_t * | cur_rd_block |
uint16_t | cur_rd_block_idx |
uint32_t | blocksize |
uint16_t | nblocks |
pthread_mutex_t | lock |
Definition at line 100 of file trap_buffer.h.
tb_block_t** trap_buffer_s::blocks |
Array of pointers to blocks.
Definition at line 114 of file trap_buffer.h.
uint32_t trap_buffer_s::blocksize |
Maximal size of tb_block_data_s element (containing data + 32b header).
Definition at line 133 of file trap_buffer.h.
tb_block_t* trap_buffer_s::cur_rd_block |
Pointer to current block
Definition at line 123 of file trap_buffer.h.
uint16_t trap_buffer_s::cur_rd_block_idx |
Index of current block to spare computation when moving to next block
Definition at line 128 of file trap_buffer.h.
tb_block_t* trap_buffer_s::cur_wr_block |
Pointer to current block
Definition at line 109 of file trap_buffer.h.
uint16_t trap_buffer_s::cur_wr_block_idx |
Index of current block to spare computation when moving to next block
Definition at line 118 of file trap_buffer.h.
pthread_mutex_t trap_buffer_s::lock |
Lock the buffer
Definition at line 143 of file trap_buffer.h.
char* trap_buffer_s::mem |
Pointer to internal memory containing the whole ring buffer.
Definition at line 104 of file trap_buffer.h.
uint16_t trap_buffer_s::nblocks |
Number of blocks in the buffer.
Definition at line 138 of file trap_buffer.h.