This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to cast away 'volatile'?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]