This is the mail archive of the gcc@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: Optimization of conditional access to globals: thread-unsafe?


> volatile can be properly used _only_ if you also assume atomicity and
> cache-coherence, and this is beyond POSIX.  But anyway, I'm proving
> the opposite: when you use POSIX locks, you don't have to use
> volatile, that it.

We're not talking about locks, see the example you gave in your first message.

-- 
Eric Botcazou


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