CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
QueueState Struct Reference

Structure used to hold state data for a single queue. More...

Data Fields

char name_str [MAX_QUEUE_NAME_LENGTH]
 Name of queue. Used for informational purposes only.
 
int queue_item_data_byte_size
 Size of the data portion of each item in bytes.
 
int queue_item_byte_size
 Size of each item in bytes (sizeof(QueueItem) + data portion).
 
int queue_item_count
 Number of items in the queue array.
 
int queue_grow_count
 Number of queue items the queue array may be increased by.
 
int queue_cur_grow_count
 Number of times the current queue has been increased.
 
int queue_max_grow_count
 The maximum number of times the queue can be increased.
 
CdiSinglyLinkedList allocated_buffer_list
 Linked list of allocated memory buffers.
 
CdiSinglyLinkedListEntryentry_read_ptr
 Current read entry in the circular queue.
 
CdiSinglyLinkedListEntryentry_write_ptr
 Current write entry in the circular queue.
 
CdiSignalType wake_pop_waiters_signal
 If enabled, signal set whenever item is pushed.
 
CdiSignalType wake_push_waiters_signal
 If enabled, signal set whenever item is popped.
 
CdiCsID multiple_writer_cs
 Optional mutex used to make pushing to queue thread safe.
 

Detailed Description

Structure used to hold state data for a single queue.


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