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.