Add ACCESS_ONCE to _STORE_SHARED
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 9 May 2009 14:48:38 +0000 (10:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 9 May 2009 14:48:38 +0000 (10:48 -0400)
commitad7de003b45b3a7339b90208c321517c2dcbdc3e
tree7a3fd43d15c1f94e3bc09a197005c1100097a955
parent54843abcc17c8e8b7600ed635e966c6970d8d20f
Add ACCESS_ONCE to _STORE_SHARED

We assume that the compiler does not reorder _STORE_SHARED across each other
and wrt _READ_SHARED. We therefore need to mark this access as volatile. The
compiler cannot reorder volatile accesses.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.h
This page took 0.024521 seconds and 4 git commands to generate.