how to cast away 'volatile'?

Noel Yap noel.yap@gmail.com
Tue Mar 13 16:23:00 GMT 2007


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@redhat.com> 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.
>



More information about the Gcc-help mailing list