On 12/9/05, David Leimbach <leimy2k@gmail.com> wrote:
Volatile is useful for telling compilers not to stick data in registers, which is helpful for multi-threaded situations with shared memory ... sometimes :)
If I were to write a semaphore or another synchronization method using shared memory on unix I'd probably type volatile and then pray :).
It often feels more of a faith issue than a knowledge issue though :)