Re: memory_order and C99

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

 



On 12/04/2014 06:35 PM, Cherry Vanc wrote:
> I see that C11 has additional features around memory_order
> (gcc/ginclude/stdatomic.h).
> 
> I am curious to know what the default behavior is in C99 ? does it
> assume sequential consistency model by default ? I tried looking up in
> the C99 standard, but couldnt find any reference.

You won't.  C99 doesn't really have any memory model.  It's safe to
assume that all data races are undefined behaviour.

Andrew.





[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