Re: how to cast away 'volatile'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 Mar 2007 08:50:25 -0700, Ian Lance Taylor <iant@xxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux