cmpxchgWeak
Function parameters
Parameters
- self:*Self
- expected_value:T
- new_value: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 cmpxchgWeak(
self: *Self,
expected_value: T,
new_value: T,
comptime success_order: AtomicOrder,
comptime fail_order: AtomicOrder,
) ?T {
return @cmpxchgWeak(T, &self.raw, expected_value, new_value, success_order, fail_order);
}