Skip to main content

Module shared

Module shared 

Source
Expand description

Shared state between the NetWorker thread, smoltcp poll thread, and tokio proxy tasks.

All inter-thread communication flows through SharedState, which holds lock-free frame queues and cross-platform WakePipe notifications.

Structs§

NetworkMetrics
Aggregate network byte counters shared with the runtime metrics sampler.
SharedState
All shared state between the three threads:
WakePipe
Cross-platform wake notification built on pipe().

Constants§

DEFAULT_QUEUE_CAPACITY
Default frame queue capacity. Matches libkrun’s virtio queue size.