IIRC, volatile is used when the memory is outside of the program's control (eg written to by external hardware). Noel On 3/13/07, Andrew Haley <aph@xxxxxxxxxx> wrote:
Ian Lance Taylor writes: > > All objects shared between threads need to protected by a mutex, or by > some other type of memory barrier. It's an interesting contention -- that in GNU/Linux userspace there are essentially no legitimate uses for volatile. Hmmmm... Andrew.