Mojo function
fence
fence[ordering: Consistency = Consistency(6), *, scope: StringSlice[StaticConstantOrigin] = ""]()
Creates an atomic fence.
Fences create synchronization between themselves and atomic operations or fences in other thread without an explicit load or store to an atomic variable. The fence prevents reordering of certain types of memory operations around it as specified by the ordering parameter.
Parameters:
- ordering (
Consistency
): The memory ordering for the fence. - scope (
StringSlice
): The memory synchronization scope.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!