eal: add rte_compiler_barrier() macro
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 10 Feb 2014 14:43:44 +0000 (14:43 +0000)
committerDavid Marchand <david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:18 +0000 (21:29 +0100)
commit6f5f8ecce1b2d11abb758fe9a89f7a39a32cd6e9
tree2d13c414f85fde69161412b5be38490760d18cbf
parente49680a87e0623d7c10bddde757042f784e4097d
eal: add rte_compiler_barrier() macro

The rte_ring functions used a compiler barrier to stop the compiler
reordering certain expressions. This is generally useful so is moved
to the common header file with the other barriers.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/include/rte_atomic.h
lib/librte_ring/rte_ring.h