Skip to content

sanitizer.AtomicOrdering enum

← Attribute reference

Atomic memory ordering. The relaxed case lowers to LLVM monotonic RMW ordering.

Cases

Keyword Value Description
relaxed 0 Atomicity without inter-address synchronization.
acquire 1 Acquire ordering.
release 2 Release ordering.
acq_rel 3 Acquire and release ordering.
seq_cst 4 Sequentially consistent ordering.

Used by

  • sanitizer.race.access.ordering
  • sanitizer.race.sync.ordering