Isolate monotonic probe scheduling policy for precise boundary checks
This commit is contained in:
1 parent
ab4b75986d
commit
c6bf960eec
2 files changed
+26
-15
No files matched your search
@@ -6,6 +6,10 @@
|
||||
#include "stream.h"
|
||||
|
||||
struct stream_optimizer;
|
||||
/* Только монотонное расписание; pending/active — незавершённый обход/пробы текущего цикла.
|
||||
* Возвращает допустимое число новых узлов, не адресов/субпотоков: 32 один раз, затем 0/1. */
|
||||
struct stream_probe_schedule { uint64_t cycle, started_ms, next_ms; };
|
||||
unsigned stream_probe_schedule_tick(struct stream_probe_schedule *schedule, uint64_t now_ms, unsigned pending, unsigned active);
|
||||
int stream_optimizer_create(struct UTUN_INSTANCE *inst, const struct stream_descriptor *descriptor, struct stream_optimizer **out);
|
||||
void stream_optimizer_destroy(struct stream_optimizer *optimizer);
|
||||
void stream_optimizer_tick(struct stream_optimizer *optimizer, struct STREAM_HANDLE *subscription, uint64_t now_ms);
|
||||
|
||||
Reference in new issue
Block a user