Skip to content

Don't use volatile to mean atomic

Tim-Philipp Müller requested to merge tpm/orc:no-volatile into main

volatile is not sufficient to provide atomic guarantees and real atomics should be used instead. GCC 11 has started warning about using volatile with atomic operations.

In case of orc, the volatile integers were always protected with a mutex, which makes it completely unnecessary.


Test MR to see if it has the same CI issues as Sebastian's.

Merge request reports