diff options
Diffstat (limited to 'src/strategies/low_latency2/queue_strategy.hh')
| -rw-r--r-- | src/strategies/low_latency2/queue_strategy.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/strategies/low_latency2/queue_strategy.hh b/src/strategies/low_latency2/queue_strategy.hh index 6d41027..2a03c91 100644 --- a/src/strategies/low_latency2/queue_strategy.hh +++ b/src/strategies/low_latency2/queue_strategy.hh @@ -16,6 +16,9 @@ class QueueContext; class LowLatency2QueueStrategy final : public QueueStrategy { public: + // It's possible that our tracking for present_ids grows without a limit if + // present isn't called. To guard against this, we store the last unique + // MAX_TRACKED_PRESENTS and use it to evict stale submissions. static constexpr auto MAX_TRACKED_PRESENTS = 50; // Mapping of present_id's to submissions. Grabbed later by the device |
