> volatile can be properly used _only_ if you also assume atomicity and > cache-coherence, and this is beyond POSIX. But anyway, I'm proving > the opposite: when you use POSIX locks, you don't have to use > volatile, that it.
We're not talking about locks, see the example you gave in your first message. -- Eric Botcazou