ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
packet_queue Struct Reference

For packet node, this is the live record that ties packet, next together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. More...

Data Fields

mutex_t mutex
packet_node_t * head
packet_node_t * tail
buffer_domain_t * domain
packet_queue_config_t config
size_t count
size_t bytes
uint64_t enqueued
uint64_t dequeued
uint64_t dropped
bool stopped

Detailed Description

For packet node, this is the live record that ties packet, next together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

packet queue keeps the values that move through the subsystem: mutex, head, tail, domain. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

Definition at line 23 of file queue.c.

Field Documentation

◆ bytes

size_t packet_queue::bytes

Definition at line 30 of file queue.c.

Referenced by packet_queue_is_full().

◆ config

packet_queue_config_t packet_queue::config

Definition at line 28 of file queue.c.

Referenced by packet_queue_is_full(), and packet_queue_push_copy().

◆ count

size_t packet_queue::count

Definition at line 29 of file queue.c.

Referenced by packet_queue_is_full(), and packet_queue_size().

◆ dequeued

uint64_t packet_queue::dequeued

Definition at line 32 of file queue.c.

Referenced by packet_queue_get_stats(), and packet_queue_try_dequeue().

◆ domain

buffer_domain_t* packet_queue::domain

Definition at line 27 of file queue.c.

Referenced by packet_queue_destroy(), and packet_queue_push_copy().

◆ dropped

uint64_t packet_queue::dropped

Definition at line 33 of file queue.c.

Referenced by packet_queue_get_stats().

◆ enqueued

uint64_t packet_queue::enqueued

Definition at line 31 of file queue.c.

Referenced by packet_queue_get_stats().

◆ head

packet_node_t* packet_queue::head

Definition at line 25 of file queue.c.

◆ mutex

◆ stopped

bool packet_queue::stopped

Definition at line 34 of file queue.c.

Referenced by packet_queue_stop(), and packet_queue_try_dequeue().

◆ tail

packet_node_t* packet_queue::tail

Definition at line 26 of file queue.c.


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