OpenCyphal / libudpard

A compact implementation of the Cyphal/UDP protocol in C for high-integrity real-time embedded systems
MIT License
10 stars 8 forks source link

Add earliest-deadline-first view of the TX queue #33

Open pavel-kirienko opened 1 year ago

pavel-kirienko commented 1 year ago

At the weekly call yesterday, I said that it would be somewhat complicated, but upon further thought, I saw that it is, in fact, easy. The earliest deadline first view will enable the user to avoid lower-priority timed-out frames from building up beyond higher-priority non-timed-out frames while the queue cannot make progress. The cost is 16 bytes of memory per queue item.