mardi 12 novembre 2019

With memory_order_relaxed how is total order of modification of an atomic variable assured on typical architectures?

As I understand memory_order_relaxed is to avoid costly memory fences that may be needed with more constrained ordering on a particular architecture. In that case how is total modification order for an atomic variable achieved on popular processors?

Aucun commentaire:

Enregistrer un commentaire