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'?


On 13 Mar 2007 08:50:25 -0700, Ian Lance Taylor <iant@google.com> wrote:
volatile doesn't help when sharing a memory buffer between threads
because volatile carries no implication of a read/write memory
barrier.

The C++ standards committee has adopted the same view; existing volatile semantics will remain unchanged and there will be separate semantics for communicating between threads. The C standards committee is only now beginning to address these issues, and so (to my knowledge) has not yet formed an opinion. In the meantime, there is POSIX.

--
Lawrence Crowl


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