If I understood release consistency correctly, loads and stores cannot be moved before acquiring a lock or after releasing a lock. The idea is that memory order is completely relaxed inside (and outside) a critical section, but the transition in or out of a critical section forces ordering.
If I understood release consistency correctly, loads and stores cannot be moved before acquiring a lock or after releasing a lock. The idea is that memory order is completely relaxed inside (and outside) a critical section, but the transition in or out of a critical section forces ordering.