Memory Ordering/Memory Barrier/Memory Barrier

 

 

Wiki:

Memory Ordering

 

GCC since version 4.1.0 and intel c++ compiler have special builtin for calling full hardware memory barrier:

__sync_synchronize().


GNU-GCC:

Built-in functions for atomic memory access

你可能感兴趣的:(c,Access,compiler)