Re: Are arrays guaranteed to be affected by a "memory" clobber?

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

 



On 11 June 2015 at 22:38, Sebastian wrote:
> On Thu, 11 Jun 2015 12:21:23 +0100 Andrew Haley wrote:
>> or one of the __atomic fences.
> As far as I can see, you can only use them on integers or pointers, but not on arrays.

You don't use a fence on anything, an atomic fence is a
synchronization operation without any associated memory location.

It provides the memory ordering guarantees without being used on a variable.




[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