diff options
| author | eunhhu <[email protected]> | 2026-09-27 08:24:08 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-09-27 08:24:08 +0100 |
| commit | 5372d03b5968796515966e2cfc89628d6448f0c1 (patch) | |
| tree | 4ddefd226b2089aafdca06fd981ad3a17a37dbbf /prototypes/connections/module.h | |
| parent | ddff7e15d1d0e90a5f5a52fcc93828c8ef0bbd5c (diff) | |
| download | pure-5372d03b5968796515966e2cfc89628d6448f0c1.tar.gz pure-5372d03b5968796515966e2cfc89628d6448f0c1.zip | |
Look for new sends newest first, only as far back as they go
After each save the owner walked the whole outbox to find the sends
not yet queued, so a receiver long down made every save walk the
backlog. pure_app_outbox_newest visits saved sends newest first, and
the owner stops once every wired output reaches the number it queued
last, then queues what it found in order.
Diffstat (limited to 'prototypes/connections/module.h')
| -rw-r--r-- | prototypes/connections/module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prototypes/connections/module.h b/prototypes/connections/module.h index 3441c03..f62326b 100644 --- a/prototypes/connections/module.h +++ b/prototypes/connections/module.h @@ -309,6 +309,8 @@ PureResult pure_app_replace(PureApp *, const PureModule *); * and trims what its receiver has saved; a receiver applies each once. */ typedef bool (*PureSentVisit)(void *context, uint32_t output, uint64_t seq, PureSpan payload); void pure_app_outbox(const PureApp *, PureSentVisit visit, void *context); +/* The same, newest first (a host looking only for what is new stops early). */ +void pure_app_outbox_newest(const PureApp *, PureSentVisit visit, void *context); /* Forget output's saved sends numbered up to through (saved with the next save). */ void pure_app_trim(PureApp *, uint32_t output, uint64_t through); /* Deliver a message event from source (a sender's name, 1 to 64 printable |
