Function increaseEstimatedTotalItems [src]
Thread-safe.
Prototype
pub fn increaseEstimatedTotalItems(n: Node, count: usize) void
Parameters
n: Node
count: usize
Source
pub fn increaseEstimatedTotalItems(n: Node, count: usize) void {
const index = n.index.unwrap() orelse return;
const storage = storageByIndex(index);
_ = @atomicRmw(u32, &storage.estimated_total_count, .Add, std.math.lossyCast(u32, count), .monotonic);
}