ex: add DelayedWorkItem

Separate WorkItem from DelayedWorkItem so that the former doesn't pay
the price of a timer and a Dpc if it won't ever get delayed.
This commit is contained in:
Loïc Grégoire
2026-08-01 09:53:17 -04:00
parent 1569bc2b29
commit 0f0ddffb2c
3 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ const mi = mm.private;
/// Interval at which we do housekeeping (working set update, reaping, etc.)
const update_interval_s = 15;
const update_interval = std.time.ns_per_s * update_interval_s;
var update_work_item: ex.WorkItem = undefined;
var update_work_item: ex.DelayedWorkItem = undefined;
/// Fixed point conversion for WMA computation.
const wma_unit = 256;