I don&#x27;t think you&#x27;ve got this quite right.  Spinlocks require memory barriers.  C11 atomics are, among other things, a standardized way to implement cross platform memory barriers without dropping into platform specific assembly.