Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @atomicStore

@atomicStore

Panther
Documentation


1: func @atomicStore = <{TARGET: Type, VALUE: Type, ORDER: @pthr.AtomicOrdering}> (target: TARGET, value: VALUE in) -> Void;

  Atomically store a value.

Template Parameters

  TARGET: must be a non-optional pointer, and is a pointer to the type of value to store to

  VALUE: must be the result of a dereference of TARGET, trivially-copyable, and cannot be F80

  ORDER: cannot be @pthr.AtomicOrdering.ACQUIRE or @pthr.AtomicOrdering.ACQ_REL

Parameters

  target: target to store to

  value: value to store to target

Return Value

  Returns Void.

Example

(TODO)

See Also

@atomicLoad Atomically load a value
@atomicRMW Atomic read-modify-write
@cmpxchg Atomic compare-exchange