C++0x Memory model and gcc
Mark Mitchell
mark@codesourcery.com
Fri May 7 13:55:00 GMT 2010
Ian Lance Taylor wrote:
> -fmemory-model=single
> Assume single threaded execution, which also means no signal
> handlers.
> -fmemory-model=fast
> The user is responsible for all synchronization. Accessing
> the same memory words from different threads may break
> unpredictably.
> -fmemory-model=safe
> The compiler will do its best to protect you.
That makes sense to me. I think that's an appropriately user-oriented
view of the choices.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc
mailing list