DoxigAlpha

fetchMin

Function parameters

Parameters

#
self:*Self
operand:T

Functions in this namespace

Functions

#
spinLoopHint
Signals to the processor that the caller is inside a busy-wait spin-loop.

The estimated size of the CPU's cache line when atomically updating memory.

Values

#
cache_line
The estimated size of the CPU's cache line when atomically updating memory.

Source

Implementation

#
pub inline fn fetchMin(self: *Self, operand: T, comptime order: AtomicOrder) T {
    return @atomicRmw(T, &self.raw, .Min, operand, order);
}