#include <circ_buff.h>
Data Fields | |
| long | buff_size |
| long | write_pnt |
| long | read_pnt |
| long | byte_count |
| unsigned long long | byte_id |
| pthread_mutex_t | circ_write_mut |
| pthread_mutex_t | circ_read_mut |
| pthread_mutex_t | circ_size_var_mut |
| pthread_mutex_t | circ_write_cond_mut |
| pthread_cond_t | circ_write_cond_var |
| pthread_mutex_t | circ_read_cond_mut |
| pthread_cond_t | circ_read_cond_var |
| void * | buff_ptr |
|
|
Pointer to the memory location of the buffer |
|
|
Size of the buffer in bytes |
|
|
Number of bytes currently in the buffer |
|
|
Identifier for each byte in the buffer |
|
|
Mutex for use with circ_read_cond_var to wait for a read |
|
|
Condition variable that allows threads to know when a read has been made |
|
|
Mutex to prevent simultaneous reads |
|
|
Mutex to prevent simultaneous updates of the size variable |
|
|
Mutex for use with circ_write_cond_var to wait for a write |
|
|
Condition variable that allows threads to know when a write has been made |
|
|
Mutex to prevent simultaneous writes |
|
|
Starting point to read |
|
|
Starting point to write |
1.3.6